From 18f1530c8463fa4de58a02a8b36f1ee696cc1c76 Mon Sep 17 00:00:00 2001 From: James Mintram Date: Sun, 17 Oct 2021 14:22:05 +0100 Subject: [PATCH] Kernel: Change prekernel to use shared SP across Exception Levels --- Kernel/Prekernel/Arch/aarch64/boot.S | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/Prekernel/Arch/aarch64/boot.S b/Kernel/Prekernel/Arch/aarch64/boot.S index 2b4b1cc2c9..d0d19966e6 100644 --- a/Kernel/Prekernel/Arch/aarch64/boot.S +++ b/Kernel/Prekernel/Arch/aarch64/boot.S @@ -18,6 +18,7 @@ start: // Let stack start before .text for now. // 512 kiB (0x80000) of stack are probably not sufficient, especially once we give the other cores some stack too, // but for now it's ok. + msr SPSel, #0 //Use the same SP as we descend into EL1 ldr x14, =start mov sp, x14