diff options
Diffstat (limited to 'os/common/ports/ARMCMx/compilers')
-rw-r--r-- | os/common/ports/ARMCMx/compilers/GCC/crt0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/common/ports/ARMCMx/compilers/GCC/crt0.c b/os/common/ports/ARMCMx/compilers/GCC/crt0.c index 3959e8bb8..6190b4771 100644 --- a/os/common/ports/ARMCMx/compilers/GCC/crt0.c +++ b/os/common/ports/ARMCMx/compilers/GCC/crt0.c @@ -289,6 +289,9 @@ void Reset_Handler(void) { asm volatile ("msr CONTROL, %0" : : "r" (reg));
asm volatile ("isb");
+ /* Early initialization hook invocation.*/
+ __early_init();
+
#if CRT0_INIT_STACKS
/* Main and Process stacks initialization.*/
fill32(&__main_stack_base__,
@@ -299,9 +302,6 @@ void Reset_Handler(void) { CRT0_STACKS_FILL_PATTERN);
#endif
- /* Early initialization hook invocation.*/
- __early_init();
-
#if CRT0_INIT_DATA
/* DATA segment initialization.*/
{
|