Skip to content

Commit bcbe0b1

Browse files
Laurent MEUNIERc1728p9
authored andcommitted
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.
1 parent 3a61bd0 commit bcbe0b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform/retarget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ extern "C" void software_init_hook(void)
509509
mbed_die();
510510
}
511511
#endif/* FEATURE_UVISOR */
512-
512+
mbed_sdk_init();
513513
software_init_hook_rtos();
514514
}
515515
#endif
@@ -540,7 +540,6 @@ extern "C" void _platform_post_stackheap_init (void) {
540540
extern "C" int __real_main(void);
541541

542542
extern "C" int __wrap_main(void) {
543-
mbed_sdk_init();
544543
mbed_main();
545544
return __real_main();
546545
}

0 commit comments

Comments
 (0)