From 4e5f6e1eff1e8cff86565fa1abbea0a082365faf Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 23 Mar 2019 23:14:23 +0100 Subject: [PATCH] Fix #1232 Thanks @profi200 --- arm11/source/start.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arm11/source/start.s b/arm11/source/start.s index c3df140..93135cf 100644 --- a/arm11/source/start.s +++ b/arm11/source/start.s @@ -21,7 +21,7 @@ @ * Prohibiting misrepresentation of the origin of that material, @ or requiring that modified versions of such material be marked in @ reasonable ways as different from the original version. - + .section .text.start, "ax", %progbits .align 4 .global _start @@ -53,6 +53,9 @@ start: mcr p15, 0, r0, c7, c7, 0 mcr p15, 0, r0, c7, c10, 4 + ldr sp, =__stack_top__ + mov fp, #0 + @ Clear BSS ldr r0, =__bss_start__ mov r1, #0 @@ -63,8 +66,6 @@ start: @ Call the init array bl __libc_init_array - ldr sp, =__stack_top__ - mov fp, #0 b main .global prepareForFirmlaunch