Set stack pointer immediately upon boot

This commit is contained in:
Berkus Decker 2020-11-14 15:46:47 +02:00
parent 20c7c8bd7e
commit 50d9caa5f6
1 changed files with 2 additions and 0 deletions
nucleus/src/arch/aarch64

View File

@ -183,6 +183,8 @@ pub unsafe extern "C" fn _boot_cores() -> ! {
const EL2: u64 = CurrentEL::EL::EL2.value;
const EL1: u64 = CurrentEL::EL::EL1.value;
SP.set(STACK_START);
if CORE_0 == MPIDR_EL1.get() & CORE_MASK {
match CurrentEL.get() {
#[cfg(qemu)]