mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 01:26:34 +00:00
thermosphere: fix exception vector regression
This commit is contained in:
parent
37a889ccb2
commit
f6793139c1
1 changed files with 6 additions and 6 deletions
|
@ -79,15 +79,15 @@
|
|||
|
||||
.macro PIVOT_STACK_FOR_CRASH
|
||||
// Note: replace sp_el1 with crashing sp (for convenience)
|
||||
// The way we do things means that exception stack ptr won't be reset on double fault
|
||||
// (sp_el2 is not accessible at el2)
|
||||
msr spsel, #0
|
||||
str x0, [sp, #-0x10]
|
||||
msr spsel, #1
|
||||
stp x0, x1, [sp, #-0x10]
|
||||
mov x0, sp
|
||||
msr sp_el1, x0
|
||||
msr spsel, #0
|
||||
ldr x0, [sp, #-0x10]
|
||||
msr spsel, #1
|
||||
mov x1, sp
|
||||
mov sp, x0
|
||||
msr sp_el1, x1
|
||||
ldp x0, x1, [sp, #-0x10]
|
||||
.endm
|
||||
|
||||
#define EXCEPTION_TYPE_HOST 0
|
||||
|
|
Loading…
Reference in a new issue