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:
parent
25720d8dd1
commit
536ef740d0
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
Loading…
Reference in a new issue