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
|
||||
}
|
||||
#else
|
||||
#ifdef __ICCARM__
|
||||
__arm
|
||||
#endif
|
||||
__STATIC_INLINE uint32_t __get_PSP (void) {
|
||||
register uint32_t ret;
|
||||
|
||||
__asm volatile (
|
||||
__ASM volatile (
|
||||
#ifndef __ICCARM__
|
||||
".syntax unified\n\t"
|
||||
".arm\n\t"
|
||||
#endif
|
||||
"sub sp,sp,#4\n\t"
|
||||
"stm sp,{sp}^\n\t"
|
||||
"pop {%[ret]}\n\t"
|
||||
|
|
Loading…
Reference in New Issue