aboutsummaryrefslogtreecommitdiff
path: root/boot.S
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-17 17:01:41 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-17 17:01:41 +0100
commit7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09 (patch)
tree1ff297ee593d14151d200ec6e4db30f360dabfd0 /boot.S
parent37821a7d49e78132e7bdf12e04a9ed339588650c (diff)
downloadrpi-MMU-example-7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09.tar.gz
rpi-MMU-example-7dbdf1ee0a064e9b2c5fedd7bd4e2b67f0532b09.zip
make things work again on real hw (setting system mode moved to boot.S)
Diffstat (limited to 'boot.S')
-rw-r--r--boot.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/boot.S b/boot.S
index 5cce37c..5e510f8 100644
--- a/boot.S
+++ b/boot.S
@@ -20,7 +20,11 @@ _start:
and r5, r5, #3
cmp r5, #0
bne halt
-
+
+ // go to system mode
+ cps #0b11111
+ isb
+
// Setup the stack.
// It shall be directly below our kernel image
ldr r5, =__start