Skip to content

Commit 6c24601

Browse files
authored
Merge pull request #1905 from geky/rtx-iar-svc-clobbered
[rtos] Fixed registers clobbered SVC_Handler in IAR
2 parents 36ac663 + 70ebb6f commit 6c24601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/rtx/TARGET_CORTEX_M/rt_CMSIS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static inline t __##f (t1 a1, t2 a2, t3 a3, t4 a4) { \
302302
#define SVC_Setup(f) \
303303
__asm( \
304304
"mov r12,%0\n" \
305-
:: "r"(&f): "r12" \
305+
:: "r"(&f): "r0", "r1", "r2", "r3", "r12" \
306306
);
307307

308308
#define SVC_Ret3() \

0 commit comments

Comments
 (0)