Merge "riscv64: say "x3" rather than "gp" in shadow call stack assembler." am: ad333b6161
am: 7e6e6d64ee
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2592806 Change-Id: Ibc3618581cf6afa6e083aabf3ecf6a966cce157b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
54b76d6a2b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ static void __init_shadow_call_stack(pthread_internal_t* thread __unused) {
|
|||
#if defined(__aarch64__)
|
||||
__asm__ __volatile__("mov x18, %0" ::"r"(scs));
|
||||
#elif defined(__riscv)
|
||||
__asm__ __volatile__("mv gp, %0" ::"r"(scs));
|
||||
__asm__ __volatile__("mv x3, %0" ::"r"(scs));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue