aboutsummaryrefslogtreecommitdiff
path: root/boot.S
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-10-03 14:04:31 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-10-03 14:04:31 +0200
commit24ab4678b96dec56129f7e36b9304b6767777e0a (patch)
tree1ab41614fc0b6e20322ef44ec3f7a29bc3bc4877 /boot.S
parent47c327eac36e78793173496f18b56f0f2159d648 (diff)
downloadrpi-MMU-example-24ab4678b96dec56129f7e36b9304b6767777e0a.tar.gz
rpi-MMU-example-24ab4678b96dec56129f7e36b9304b6767777e0a.zip
specify load address only in linker script; change it to 0x10000 (for now); avoid padding
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.