mirror of https://github.com/ARMmbed/mbed-os.git
RTX5: fixed __get_PSP function for Cortex-A on IAR (#288)
parent
11ec7a2209
commit
0ff62f6b9e
|
@ -73,12 +73,17 @@ static __asm uint32_t __get_PSP (void) {
|
||||||
bx lr
|
bx lr
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#ifdef __ICCARM__
|
||||||
|
__arm
|
||||||
|
#endif
|
||||||
__STATIC_INLINE uint32_t __get_PSP (void) {
|
__STATIC_INLINE uint32_t __get_PSP (void) {
|
||||||
register uint32_t ret;
|
register uint32_t ret;
|
||||||
|
|
||||||
__asm volatile (
|
__ASM volatile (
|
||||||
|
#ifndef __ICCARM__
|
||||||
".syntax unified\n\t"
|
".syntax unified\n\t"
|
||||||
".arm\n\t"
|
".arm\n\t"
|
||||||
|
#endif
|
||||||
"sub sp,sp,#4\n\t"
|
"sub sp,sp,#4\n\t"
|
||||||
"stm sp,{sp}^\n\t"
|
"stm sp,{sp}^\n\t"
|
||||||
"pop {%[ret]}\n\t"
|
"pop {%[ret]}\n\t"
|
||||||
|
|
Loading…
Reference in New Issue