apic: enable LAPIC on application processors
This commit is contained in:
parent
e7ceff19ec
commit
eaf5254b3b
3 changed files with 11 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue