aboutsummaryrefslogtreecommitdiff
path: root/boot.S
diff options
context:
space:
mode:
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