Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/locore.S
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | ENTRY(mpentry) | ||||
/* Enable the mmu */ | /* Enable the mmu */ | ||||
bl start_mmu | bl start_mmu | ||||
/* Jump to the virtual address space */ | /* Jump to the virtual address space */ | ||||
ldr x15, =mp_virtdone | ldr x15, =mp_virtdone | ||||
br x15 | br x15 | ||||
mp_virtdone: | mp_virtdone: | ||||
ldr x4, =secondary_stacks | /* Start using the AP boot stack */ | ||||
mov x5, #(PAGE_SIZE * KSTACK_PAGES) | ldr x4, =bootstack | ||||
mul x5, x0, x5 | ldr x4, [x4] | ||||
add sp, x4, x5 | mov sp, x4 | ||||
b init_secondary | b init_secondary | ||||
END(mpentry) | END(mpentry) | ||||
#endif | #endif | ||||
/* | /* | ||||
* If we are started in EL2, configure the required hypervisor | * If we are started in EL2, configure the required hypervisor | ||||
* registers and drop to EL1. | * registers and drop to EL1. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines |