x86_64: smp: reset __this_ap_ok to 0 before starting AP
This commit is contained in:
@@ -56,6 +56,7 @@ static int init_ap(struct acpi_madt_record *rec, local_apic& lapic, uint8_t bsp_
|
||||
return 0;
|
||||
}
|
||||
|
||||
__this_ap_ok = 0;
|
||||
__ap_stack_page = vm_page_alloc(VM_PAGE_4K, VM_NORMAL);
|
||||
__ap_stack_top = (uintptr_t)vm_page_get_vaddr((struct vm_page *)__ap_stack_page) + VM_PAGE_SIZE;
|
||||
__this_ap_id = ap_lapic->l_apic_id;
|
||||
|
||||
Reference in New Issue
Block a user