summaryrefslogtreecommitdiff
path: root/Kernel/Prekernel
diff options
context:
space:
mode:
authorJames Mintram <me@jamesrm.com>2021-10-17 14:22:05 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-11-28 22:01:21 -0800
commit18f1530c8463fa4de58a02a8b36f1ee696cc1c76 (patch)
treef5b8b9b26e4656da92741401a093cff93b2dfcfc /Kernel/Prekernel
parent5a75bd31b09ea01a77a9774e95909af925fcf5b8 (diff)
downloadserenity-18f1530c8463fa4de58a02a8b36f1ee696cc1c76.zip
Kernel: Change prekernel to use shared SP across Exception Levels
Diffstat (limited to 'Kernel/Prekernel')
-rw-r--r--Kernel/Prekernel/Arch/aarch64/boot.S1
1 files changed, 1 insertions, 0 deletions
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