apic: enable LAPIC on application processors

This commit is contained in:
Michael Shaw 2023-11-01 19:18:31 -04:00
commit eaf5254b3b
3 changed files with 11 additions and 2 deletions

View file

@ -193,6 +193,9 @@ void ap_kmain(struct limine_smp_info *info)
idt_load();
cr3_write(kcr3);
/* enable the APIC */
lapic_enable();
void *kstack = buddy_alloc(KSTACK_SIZE);
uintptr_t ptr = (uintptr_t)kstack + KSTACK_SIZE - 8;