From 5055dc85c8a74fcd2ec24fbc51eba2a2da68debe Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 19 Aug 2018 19:39:47 +0200 Subject: cleaning up asm stuff and improving docs --- kernel/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/smp.c') diff --git a/kernel/smp.c b/kernel/smp.c index 08af652..a562df3 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -10,7 +10,7 @@ #include "smp.h" #include "mem.h" #include "spinlock.h" -#include "x86.h" +#include "asm/x86.h" #define FOOLOS_APIC_SPUR_INT 0x00f0 #define FOOLOS_APIC_INT_COMMAND_LOW 0x0300 @@ -27,7 +27,7 @@ uint32_t local_apic_addr; void smp_main() { - x86_int_disable(); + x86_cli(); while(1); // log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"local apic_addr:0x%08X",local_apic_addr); -- cgit v1.2.3