aboutsummaryrefslogtreecommitdiff
path: root/src/boot.S
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-13 01:54:51 -0700
committerChristian Cunningham <cc@localhost>2022-02-13 01:54:51 -0700
commit958696be616aaaa4fe18fc2b886216f191bb6f9b (patch)
tree1bdef3ca97744487cfaad680665adce83dc60d47 /src/boot.S
parentfcf70bcd6a2b2d3bbf76280041438fb1abf33d52 (diff)
Mutex Waiting Implemented
Svc 4 and 5
Diffstat (limited to 'src/boot.S')
-rw-r--r--src/boot.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/boot.S b/src/boot.S
index e4da373..6b04301 100644
--- a/src/boot.S
+++ b/src/boot.S
@@ -1,9 +1,9 @@
// To keep this in the first portion of the binary.
.section ".text.boot"
-
+
// Make _start global.
.globl _start
-
+
_start:
reset:
cpsid aif
@@ -32,7 +32,7 @@ reset:
ldr sp, =core0_sys_stack
cps #0x13 // Setup sp in SVC mode.
ldr sp, =core0_svc_stack
-
+
// Clear out bss.
ldr r4, =__bss_start
ldr r9, =__bss_end
@@ -41,10 +41,10 @@ reset:
mov r7, #0
mov r8, #0
b 2f
-
+
1: // store multiple at r4.
stmia r4!, {r5-r8}
-
+
2: // If we are still below bss_end, loop.
cmp r4, r9
blo 1b