diff options
Diffstat (limited to 'sys/arch/amd64/machdep.c')
-rw-r--r-- | sys/arch/amd64/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/machdep.c b/sys/arch/amd64/machdep.c index 9fd7a12..edff4f2 100644 --- a/sys/arch/amd64/machdep.c +++ b/sys/arch/amd64/machdep.c @@ -68,14 +68,15 @@ processor_init(void) /* Indicates what doesn't need to be init anymore */ static uint8_t init_flags = 0; + interrupts_init(); + gdt_load(&g_gdtr); + if (!__TEST(init_flags, INIT_FLAG_IOAPIC)) { init_flags |= INIT_FLAG_IOAPIC; ioapic_init(); } lapic_init(); /* Per core */ - gdt_load(&g_gdtr); - interrupts_init(); /* Enable spectre mitigation if enabled */ if (try_spectre_mitigate != NULL) |