Meved early initialization hook even earlier in the boot sequence (ARMCMx ctr0.c).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7141 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
832fbf4c6d
commit
4df2f81372
|
@ -289,6 +289,9 @@ void Reset_Handler(void) {
|
||||||
asm volatile ("msr CONTROL, %0" : : "r" (reg));
|
asm volatile ("msr CONTROL, %0" : : "r" (reg));
|
||||||
asm volatile ("isb");
|
asm volatile ("isb");
|
||||||
|
|
||||||
|
/* Early initialization hook invocation.*/
|
||||||
|
__early_init();
|
||||||
|
|
||||||
#if CRT0_INIT_STACKS
|
#if CRT0_INIT_STACKS
|
||||||
/* Main and Process stacks initialization.*/
|
/* Main and Process stacks initialization.*/
|
||||||
fill32(&__main_stack_base__,
|
fill32(&__main_stack_base__,
|
||||||
|
@ -299,9 +302,6 @@ void Reset_Handler(void) {
|
||||||
CRT0_STACKS_FILL_PATTERN);
|
CRT0_STACKS_FILL_PATTERN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Early initialization hook invocation.*/
|
|
||||||
__early_init();
|
|
||||||
|
|
||||||
#if CRT0_INIT_DATA
|
#if CRT0_INIT_DATA
|
||||||
/* DATA segment initialization.*/
|
/* DATA segment initialization.*/
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue