base: add initial r0 register to crt0.s for arm

Issue #2451
This commit is contained in:
Alexander Boettcher 2017-07-04 16:41:07 +02:00 committed by Christian Helmuth
parent 782b457476
commit c22b60f0c4

View File

@ -28,6 +28,8 @@
/* make initial value of some registers available to higher-level code */
ldr r4, =__initial_sp
str sp, [r4]
ldr r4, =__initial_r0
str r0, [r4]
/*
* Install initial temporary environment that is replaced later by the
@ -66,3 +68,7 @@
.global __initial_sp
__initial_sp:
.space 4
/* initial value of the R0 register */
.global __initial_r0
__initial_r0:
.space 4