Thanks @profi200
This commit is contained in:
TuxSH 2019-03-23 23:14:23 +01:00
parent 474eb3001b
commit 4e5f6e1eff

View File

@ -21,7 +21,7 @@
@ * Prohibiting misrepresentation of the origin of that material, @ * Prohibiting misrepresentation of the origin of that material,
@ or requiring that modified versions of such material be marked in @ or requiring that modified versions of such material be marked in
@ reasonable ways as different from the original version. @ reasonable ways as different from the original version.
.section .text.start, "ax", %progbits .section .text.start, "ax", %progbits
.align 4 .align 4
.global _start .global _start
@ -53,6 +53,9 @@ start:
mcr p15, 0, r0, c7, c7, 0 mcr p15, 0, r0, c7, c7, 0
mcr p15, 0, r0, c7, c10, 4 mcr p15, 0, r0, c7, c10, 4
ldr sp, =__stack_top__
mov fp, #0
@ Clear BSS @ Clear BSS
ldr r0, =__bss_start__ ldr r0, =__bss_start__
mov r1, #0 mov r1, #0
@ -63,8 +66,6 @@ start:
@ Call the init array @ Call the init array
bl __libc_init_array bl __libc_init_array
ldr sp, =__stack_top__
mov fp, #0
b main b main
.global prepareForFirmlaunch .global prepareForFirmlaunch