Skip to content

Commit 5b23d9b

Browse files
committed
Remove assembler directives
Remove the assembler directives from the inline assembly in RTX_CM_lib.h since these can have unintended side effects in the surrounding C code.
1 parent 793f9c5 commit 5b23d9b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,6 @@ void pre_main(void) {
643643

644644
__attribute__((naked)) void software_init_hook (void) {
645645
__asm (
646-
".syntax unified\n"
647-
".thumb\n"
648646
"bl osKernelInitialize\n"
649647
#ifdef __MBED_CMSIS_RTOS_CM
650648
"bl set_main_stack\n"

0 commit comments

Comments
 (0)