aboutsummaryrefslogtreecommitdiff
path: root/boot.S
diff options
context:
space:
mode:
Diffstat (limited to 'boot.S')
-rw-r--r--boot.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/boot.S b/boot.S
index da8aca7..20cf155 100644
--- a/boot.S
+++ b/boot.S
@@ -2,11 +2,12 @@
// To keep this in the first portion of the binary.
.section ".text.boot"
-
+
+//.org 0x8000
+
// Make _start global.
.globl _start
-.org 0x8000
// Entry point for the kernel.
// r15 -> should begin execution at 0x8000.
// r0 -> 0x00000000
@@ -21,7 +22,8 @@ _start:
bne halt
// Setup the stack.
- ldr r5, =_start
+ // It shall be directly below our kernel image
+ ldr r5, =__start
mov sp, r5
// Clear out bss.