mirror of https://github.com/rusefi/ChibiOS.git
Updated v6M startup.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13214 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
481c37b612
commit
62f8045327
|
@ -211,9 +211,9 @@ endpsloop:
|
||||||
#if CRT0_INIT_DATA == TRUE
|
#if CRT0_INIT_DATA == TRUE
|
||||||
/* Data initialization. Note, it assumes that the DATA size
|
/* Data initialization. Note, it assumes that the DATA size
|
||||||
is a multiple of 4 so the linker file must ensure this.*/
|
is a multiple of 4 so the linker file must ensure this.*/
|
||||||
ldr r1, =_textdata
|
ldr r1, =__textdata_base__
|
||||||
ldr r2, =_data
|
ldr r2, =__data_base__
|
||||||
ldr r3, =_edata
|
ldr r3, =__data_end__
|
||||||
dloop:
|
dloop:
|
||||||
cmp r2, r3
|
cmp r2, r3
|
||||||
bge enddloop
|
bge enddloop
|
||||||
|
@ -229,8 +229,8 @@ enddloop:
|
||||||
/* BSS initialization. Note, it assumes that the DATA size
|
/* BSS initialization. Note, it assumes that the DATA size
|
||||||
is a multiple of 4 so the linker file must ensure this.*/
|
is a multiple of 4 so the linker file must ensure this.*/
|
||||||
movs r0, #0
|
movs r0, #0
|
||||||
ldr r1, =_bss_start
|
ldr r1, =__bss_base__
|
||||||
ldr r2, =_bss_end
|
ldr r2, =__bss_end__
|
||||||
bloop:
|
bloop:
|
||||||
cmp r1, r2
|
cmp r1, r2
|
||||||
bge endbloop
|
bge endbloop
|
||||||
|
@ -250,8 +250,8 @@ endbloop:
|
||||||
|
|
||||||
#if CRT0_CALL_CONSTRUCTORS == TRUE
|
#if CRT0_CALL_CONSTRUCTORS == TRUE
|
||||||
/* Constructors invocation.*/
|
/* Constructors invocation.*/
|
||||||
ldr r4, =__init_array_start
|
ldr r4, =__init_array_base__
|
||||||
ldr r5, =__init_array_end
|
ldr r5, =__init_array_end__
|
||||||
initloop:
|
initloop:
|
||||||
cmp r4, r5
|
cmp r4, r5
|
||||||
bge endinitloop
|
bge endinitloop
|
||||||
|
@ -267,8 +267,8 @@ endinitloop:
|
||||||
|
|
||||||
#if CRT0_CALL_DESTRUCTORS == TRUE
|
#if CRT0_CALL_DESTRUCTORS == TRUE
|
||||||
/* Destructors invocation.*/
|
/* Destructors invocation.*/
|
||||||
ldr r4, =__fini_array_start
|
ldr r4, =__fini_array_base__
|
||||||
ldr r5, =__fini_array_end
|
ldr r5, =__fini_array_end__
|
||||||
finiloop:
|
finiloop:
|
||||||
cmp r4, r5
|
cmp r4, r5
|
||||||
bge endfiniloop
|
bge endfiniloop
|
||||||
|
|
Loading…
Reference in New Issue