INIT:GCC with rtos: Align pre-main initialization steps between TCs

In this commit we're moving the mbed_sdk_init call before the RTOS
initialisation so that the sequence is similar to other toolchains.
pull/2917/head
Laurent MEUNIER 2016-08-17 13:21:25 +02:00 committed by Russ Butler
parent 3a61bd025f
commit bcbe0b17de
1 changed files with 1 additions and 2 deletions

View File

@ -509,7 +509,7 @@ extern "C" void software_init_hook(void)
mbed_die();
}
#endif/* FEATURE_UVISOR */
mbed_sdk_init();
software_init_hook_rtos();
}
#endif
@ -540,7 +540,6 @@ extern "C" void _platform_post_stackheap_init (void) {
extern "C" int __real_main(void);
extern "C" int __wrap_main(void) {
mbed_sdk_init();
mbed_main();
return __real_main();
}