armv8-m:arch libc function need save ip register use pacbti
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
df090a86f9
commit
e085f0ee80
|
@ -119,6 +119,7 @@ memcpy:
|
||||||
# else
|
# else
|
||||||
pac ip, lr, sp
|
pac ip, lr, sp
|
||||||
# endif /* __ARM_FEATURE_BTI_DEFAULT */
|
# endif /* __ARM_FEATURE_BTI_DEFAULT */
|
||||||
|
push {ip}
|
||||||
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
||||||
#ifdef __ARM_FEATURE_MVE
|
#ifdef __ARM_FEATURE_MVE
|
||||||
mov r3, lr
|
mov r3, lr
|
||||||
|
@ -130,6 +131,7 @@ memcpy:
|
||||||
letp lr, 1b
|
letp lr, 1b
|
||||||
2:
|
2:
|
||||||
#if __ARM_FEATURE_PAC_DEFAULT
|
#if __ARM_FEATURE_PAC_DEFAULT
|
||||||
|
pop {ip}
|
||||||
aut ip, lr, sp
|
aut ip, lr, sp
|
||||||
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
||||||
bx r3
|
bx r3
|
||||||
|
@ -243,6 +245,7 @@ memcpy:
|
||||||
pop {r0}
|
pop {r0}
|
||||||
#endif
|
#endif
|
||||||
#if __ARM_FEATURE_PAC_DEFAULT
|
#if __ARM_FEATURE_PAC_DEFAULT
|
||||||
|
pop {ip}
|
||||||
aut ip, lr, sp
|
aut ip, lr, sp
|
||||||
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
||||||
bx lr
|
bx lr
|
||||||
|
@ -387,6 +390,7 @@ memcpy:
|
||||||
pop {r0}
|
pop {r0}
|
||||||
#endif
|
#endif
|
||||||
#if __ARM_FEATURE_PAC_DEFAULT
|
#if __ARM_FEATURE_PAC_DEFAULT
|
||||||
|
pop {ip}
|
||||||
aut ip, lr, sp
|
aut ip, lr, sp
|
||||||
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
#endif /* __ARM_FEATURE_PAC_DEFAULT */
|
||||||
bx lr
|
bx lr
|
||||||
|
|
Loading…
Reference in New Issue