From 133ac34c021ae54de12a87c06e2a98ebbdcbcedd Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 21 Oct 2012 17:44:22 +0000 Subject: [PATCH] Bug 3578927 again. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4774 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/ARMCMx/crt0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/ports/GCC/ARMCMx/crt0.c b/os/ports/GCC/ARMCMx/crt0.c index 6c118b90d..72e8aacd6 100644 --- a/os/ports/GCC/ARMCMx/crt0.c +++ b/os/ports/GCC/ARMCMx/crt0.c @@ -282,9 +282,6 @@ void ResetHandler(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__, @@ -295,6 +292,9 @@ void ResetHandler(void) { CRT0_STACKS_FILL_PATTERN); #endif + /* Early initialization hook invocation.*/ + __early_init(); + #if CRT0_INIT_DATA /* DATA segment initialization.*/ {