diff options
| author | Miguel <m.i@gmx.at> | 2018-08-19 19:39:47 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-19 19:39:47 +0200 |
| commit | 5055dc85c8a74fcd2ec24fbc51eba2a2da68debe (patch) | |
| tree | 6b9589c5c89c8bc5c90771ff9d630c15e670f024 /kernel/smp.c | |
| parent | 575c725f998b166f1d286a2664aa3d6061d337fe (diff) | |
cleaning up asm stuff and improving docs
Diffstat (limited to 'kernel/smp.c')
| -rw-r--r-- | kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
