From 4d3cd9bd400b3d07d752d60ce2b3c425a53b72d6 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 26 Dec 2019 19:02:32 +0100 Subject: improve linking of initial boot code --- boot.S | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'boot.S') diff --git a/boot.S b/boot.S index a792c94..ae56387 100644 --- a/boot.S +++ b/boot.S @@ -1,20 +1,14 @@ // armv7 mode -// To keep this in the first portion of the binary. -.section ".boot" - -//.org 0x8000 - -// Make _start global. -.globl _start - // Entry point for the kernel. // r15 -> should begin execution at 0x8000. // r0 -> 0x00000000 // r1 -> 0x00000C42 // r2 -> 0x00000100 - start of ATAGS // preserve these registers as argument for kernel_main -_start: + +.globl _boot // make entry point label global +_boot: // Shut off extra cores mrc p15, 0, r5, c0, c0, 5 and r5, r5, #3 -- cgit v1.2.3