Skip to content

Commit c97dcd0

Browse files
committed
CMSIS: Modify M0/M0+ GCC asm to support ARMC6
1 parent bef020b commit c97dcd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M0/irq_cm0.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ SVC_ContextRestore:
102102
SUBS R0,R0,#32 // Adjust address
103103
LDMIA R0!,{R4-R7} // Restore R4..R7
104104

105-
MOVS R0,#~0xFFFFFFFD
105+
MOVS R0,#2 // Binary complement of 0xFFFFFFFD
106106
MVNS R0,R0 // Set EXC_RETURN value
107107
BX R0 // Exit from handler
108108

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_M0P/irq_cm0.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ SVC_ContextRestore:
102102
SUBS R0,R0,#32 // Adjust address
103103
LDMIA R0!,{R4-R7} // Restore R4..R7
104104

105-
MOVS R0,#~0xFFFFFFFD
105+
MOVS R0,#2 // Binary complement of 0xFFFFFFFD
106106
MVNS R0,R0 // Set EXC_RETURN value
107107
BX R0 // Exit from handler
108108

0 commit comments

Comments
 (0)