From 24ab4678b96dec56129f7e36b9304b6767777e0a Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 3 Oct 2019 14:04:31 +0200 Subject: specify load address only in linker script; change it to 0x10000 (for now); avoid padding --- boot.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'boot.S') 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. -- cgit v1.2.3