We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ec7a2 commit 0ff62f6Copy full SHA for 0ff62f6
rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_core_ca.h
@@ -73,12 +73,17 @@ static __asm uint32_t __get_PSP (void) {
73
bx lr
74
}
75
#else
76
+#ifdef __ICCARM__
77
+__arm
78
+#endif
79
__STATIC_INLINE uint32_t __get_PSP (void) {
80
register uint32_t ret;
81
- __asm volatile (
82
+ __ASM volatile (
83
+#ifndef __ICCARM__
84
".syntax unified\n\t"
85
".arm\n\t"
86
87
"sub sp,sp,#4\n\t"
88
"stm sp,{sp}^\n\t"
89
"pop {%[ret]}\n\t"
0 commit comments