Skip to content

Commit a633829

Browse files
author
Laurent MEUNIER
committed
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 9c93aa8 commit a633829

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hal/common/retarget.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ extern "C" void software_init_hook(void)
510510
mbed_die();
511511
}
512512
#endif/* FEATURE_UVISOR */
513-
513+
mbed_sdk_init();
514514
software_init_hook_rtos();
515515
}
516516
#endif
@@ -541,7 +541,6 @@ extern "C" void _platform_post_stackheap_init (void) {
541541
extern "C" int __real_main(void);
542542

543543
extern "C" int __wrap_main(void) {
544-
mbed_sdk_init();
545544
mbed_main();
546545
return __real_main();
547546
}

0 commit comments

Comments
 (0)