Decoupling Architectural-specific Code (#35)
[lunaix-os.git] / lunaix-os / arch / i386 / hal / apic.c
index 458bf03baf08eed03683c2f833983a25c5d38fd6..4e2501f93a95f600290eba6348b3cca112abd168 100644 (file)
@@ -9,11 +9,11 @@
  *
  */
 
  *
  */
 
-#include <hal/intc.h>
+#include "sys/x86_isa.h"
 #include <sys/cpu.h>
 
 #include <sys/cpu.h>
 
-#include <sys/apic.h>
-#include <sys/interrupts.h>
+#include "sys/apic.h"
+#include <sys/hart.h>
 
 #include <lunaix/mm/mmio.h>
 #include <lunaix/spike.h>
 
 #include <lunaix/mm/mmio.h>
 #include <lunaix/spike.h>
@@ -102,7 +102,7 @@ apic_setup_lvts()
 }
 
 void
 }
 
 void
-apic_on_eoi(struct intc_context* intc_ctx, cpu_t cpu, int iv)
+apic_on_eoi(struct x86_intc* intc_ctx, cpu_t cpu, int iv)
 {
     // for all external interrupts except the spurious interrupt
     //  this is required by Intel Manual Vol.3A, section 10.8.1 & 10.8.5
 {
     // for all external interrupts except the spurious interrupt
     //  this is required by Intel Manual Vol.3A, section 10.8.1 & 10.8.5