aboutsummaryrefslogtreecommitdiff
path: root/src/boot.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-24 18:24:59 -0700
committerChristian Cunningham <cc@localhost>2022-02-24 18:24:59 -0700
commita621bee817320cc3e17b097da29b3d46c62a90b4 (patch)
tree225317dee58e7e513c4d48527ea4a752be11d4a7 /src/boot.S
parent667ee7c7ba26b4c32133dad24031ba30b5db70b0 (diff)
Exit Hypervisor Mode
Diffstat (limited to 'src/boot.S')
-rw-r--r--src/boot.S10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/boot.S b/src/boot.S
index 9d431d7..6da500b 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -9,6 +9,13 @@
_start:
reset:
cpsid aif
+ mrs r0, cpsr
+ bic r0, r0, #0x1f
+ orr r0, r0, #0x13
+ msr spsr_cxsf, r0
+ add r0, pc, #4
+ msr ELR_hyp, r0
+ eret
// disable core0,1,2.
mrc p15, #0, r1, c0, c0, #5
and r1, r1, #3
@@ -54,15 +61,12 @@ reset:
runcore1:
init_core 1
- core_task 1
b io_halt
runcore2:
init_core 2
- core_task 2
b io_halt
runcore3:
init_core 3
- core_task 3
b io_halt
.globl io_halt