mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
3a61bd025f
commit
bcbe0b17de
|
@ -509,7 +509,7 @@ extern "C" void software_init_hook(void)
|
||||||
mbed_die();
|
mbed_die();
|
||||||
}
|
}
|
||||||
#endif/* FEATURE_UVISOR */
|
#endif/* FEATURE_UVISOR */
|
||||||
|
mbed_sdk_init();
|
||||||
software_init_hook_rtos();
|
software_init_hook_rtos();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -540,7 +540,6 @@ extern "C" void _platform_post_stackheap_init (void) {
|
||||||
extern "C" int __real_main(void);
|
extern "C" int __real_main(void);
|
||||||
|
|
||||||
extern "C" int __wrap_main(void) {
|
extern "C" int __wrap_main(void) {
|
||||||
mbed_sdk_init();
|
|
||||||
mbed_main();
|
mbed_main();
|
||||||
return __real_main();
|
return __real_main();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue