Skip to content

Commit 086ab73

Browse files
VladimirUmekadbridge
authored andcommitted
RTX5: fixed __get_PSP function for Cortex-A on IAR (#288)
1 parent f231db1 commit 086ab73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_core_ca.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,17 @@ static __asm uint32_t __get_PSP (void) {
7373
bx lr
7474
}
7575
#else
76+
#ifdef __ICCARM__
77+
__arm
78+
#endif
7679
__STATIC_INLINE uint32_t __get_PSP (void) {
7780
register uint32_t ret;
7881

79-
__asm volatile (
82+
__ASM volatile (
83+
#ifndef __ICCARM__
8084
".syntax unified\n\t"
8185
".arm\n\t"
86+
#endif
8287
"sub sp,sp,#4\n\t"
8388
"stm sp,{sp}^\n\t"
8489
"pop {%[ret]}\n\t"

0 commit comments

Comments
 (0)