From 50d9caa5f6beac19ba1e1ad12ac97969632b85e5 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sat, 14 Nov 2020 15:46:47 +0200 Subject: [PATCH] Set stack pointer immediately upon boot --- nucleus/src/arch/aarch64/boot.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nucleus/src/arch/aarch64/boot.rs b/nucleus/src/arch/aarch64/boot.rs index 7cc0686..90fea6f 100644 --- a/nucleus/src/arch/aarch64/boot.rs +++ b/nucleus/src/arch/aarch64/boot.rs @@ -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)]