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?
|
// running at EL3?
|
||||||
cmp x0, #12
|
cmp x0, #12
|
||||||
bne 1f
|
bne 1f
|
||||||
|
msr sp_el2, x1
|
||||||
mov x2, #0x5b1
|
mov x2, #0x5b1
|
||||||
msr scr_el3, x2
|
msr scr_el3, x2
|
||||||
mov x2, #0x3c9
|
mov x2, #0x3c9
|
||||||
|
@ -56,8 +57,7 @@ _start:
|
||||||
// running at EL2?
|
// running at EL2?
|
||||||
1: cmp x0, #4
|
1: cmp x0, #4
|
||||||
beq 1f
|
beq 1f
|
||||||
mov x2, #4096
|
msr sp_el1, x1
|
||||||
msr sp_el1, x2
|
|
||||||
// set up exception handlers
|
// set up exception handlers
|
||||||
ldr x2, =_vectors
|
ldr x2, =_vectors
|
||||||
msr vbar_el2, x2
|
msr vbar_el2, x2
|
||||||
|
|
BIN
bootboot.img
BIN
bootboot.img
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue