aboutsummaryrefslogtreecommitdiff
path: root/sys/arch/amd64/machdep.c
diff options
context:
space:
mode:
authorsigsegv7 <ian@vegaa.systems>2023-09-17 05:28:14 -0400
committersigsegv7 <ian@vegaa.systems>2023-09-17 05:28:14 -0400
commitf1e6e1114aaa2c9be69c456a20da82c877a1c8e3 (patch)
tree9ee3afd61eac040b48b038e4a5d2b1bbc7a59f28 /sys/arch/amd64/machdep.c
parentc0dbc1251d68f19c52d1bd51f6d0cbe1485f1fa5 (diff)
kernel/amd64: Add Local APIC driver
This commit introduces the initial Local APIC driver sources Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'sys/arch/amd64/machdep.c')
-rw-r--r--sys/arch/amd64/machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/amd64/machdep.c b/sys/arch/amd64/machdep.c
index 0b52792..e6088a0 100644
--- a/sys/arch/amd64/machdep.c
+++ b/sys/arch/amd64/machdep.c
@@ -33,6 +33,7 @@
#include <machine/idt.h>
#include <machine/gdt.h>
#include <machine/ioapic.h>
+#include <machine/lapic.h>
#define ISR(func) ((uintptr_t)func)
#define INIT_FLAG_IOAPIC 0x00000001U
@@ -71,6 +72,7 @@ processor_init(void)
ioapic_init();
}
+ lapic_init(); /* Per core */
gdt_load(&g_gdtr);
interrupts_init();
}