diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-10-21 17:43:36 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-10-21 17:43:36 +0000 |
commit | 38339542cc09f2fb53d4b08ae3fe12bb488d1ffc (patch) | |
tree | b93949d71672d3697949cca2937cd1e959fe9fa7 /os | |
parent | ad4bbd4690218aec911f422e9056e16dda2778d6 (diff) | |
download | ChibiOS-38339542cc09f2fb53d4b08ae3fe12bb488d1ffc.tar.gz ChibiOS-38339542cc09f2fb53d4b08ae3fe12bb488d1ffc.tar.bz2 ChibiOS-38339542cc09f2fb53d4b08ae3fe12bb488d1ffc.zip |
Bug 3578927 again.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4773 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/ports/GCC/ARMCMx/crt0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/ports/GCC/ARMCMx/crt0.c b/os/ports/GCC/ARMCMx/crt0.c index 4ac08ecdb..c1d32ba84 100644 --- a/os/ports/GCC/ARMCMx/crt0.c +++ b/os/ports/GCC/ARMCMx/crt0.c @@ -275,9 +275,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__,
@@ -288,6 +285,9 @@ void ResetHandler(void) { CRT0_STACKS_FILL_PATTERN);
#endif
+ /* Early initialization hook invocation.*/
+ __early_init();
+
#if CRT0_INIT_DATA
/* DATA segment initialization.*/
{
|