summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/cpu/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/cpu/cpu.c')
-rw-r--r--sys/arch/amd64/cpu/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arch/amd64/cpu/cpu.c b/sys/arch/amd64/cpu/cpu.c
index 942f5b3..9047064 100644
--- a/sys/arch/amd64/cpu/cpu.c
+++ b/sys/arch/amd64/cpu/cpu.c
@@ -32,6 +32,7 @@
#include <os/trace.h>
#include <mu/cpu.h>
#include <md/msr.h>
+#include <md/lapic.h>
struct cpu_info *
cpu_self(void)
@@ -49,4 +50,5 @@ void
cpu_conf(struct cpu_info *ci)
{
wrmsr(IA32_GS_BASE, (uintptr_t)ci);
+ lapic_init();
}