1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Although not used, set EL2 and EL1 stacks properly

This commit is contained in:
bzt 2019-03-08 12:25:31 +01:00
parent 25720d8dd1
commit 536ef740d0
2 changed files with 2 additions and 2 deletions

View file

@ -46,6 +46,7 @@ _start:
// running at EL3?
cmp x0, #12
bne 1f
msr sp_el2, x1
mov x2, #0x5b1
msr scr_el3, x2
mov x2, #0x3c9
@ -56,8 +57,7 @@ _start:
// running at EL2?
1: cmp x0, #4
beq 1f
mov x2, #4096
msr sp_el1, x2
msr sp_el1, x1
// set up exception handlers
ldr x2, =_vectors
msr vbar_el2, x2

Binary file not shown.