More startup fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13833 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-09-04 10:09:56 +00:00
parent 62bbb92055
commit 328c7e9aec
4 changed files with 5 additions and 4 deletions

View File

@ -78,6 +78,8 @@ Reset_Handler:
mov sp, r0 mov sp, r0
// ldr r1, =__sys_stack_size__ // ldr r1, =__sys_stack_size__
// sub r0, r0, r1 // sub r0, r0, r1
/* Core initialization.*/
bl __cpu_init
/* /*
* Early initialization. * Early initialization.
*/ */
@ -109,7 +111,6 @@ bssloop:
/* /*
* Late initialization. * Late initialization.
*/ */
bl __core_init
bl __late_init bl __late_init
/* /*

View File

@ -34,7 +34,7 @@
__attribute__((weak)) __attribute__((weak))
#endif #endif
/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/ /*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
void __core_init(void) {} void __cpu_init(void) {}
/** /**
* @brief Early initialization. * @brief Early initialization.

View File

@ -174,7 +174,7 @@ _crt0_entry:
#if CRT0_INIT_CORE == TRUE #if CRT0_INIT_CORE == TRUE
/* Core initialization.*/ /* Core initialization.*/
bl __core_init bl __cpu_init
#endif #endif
/* Early initialization..*/ /* Early initialization..*/

View File

@ -251,7 +251,7 @@ _crt0_entry:
#if CRT0_INIT_CORE == TRUE #if CRT0_INIT_CORE == TRUE
/* Core initialization.*/ /* Core initialization.*/
bl __core_init bl __cpu_init
#endif #endif
/* Early initialization.*/ /* Early initialization.*/