commit | ad333b6161f7c953a2e8105e814f6e7019afa8f9 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Wed May 17 16:51:16 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 17 16:51:16 2023 +0000 |
tree | b4ba79138c8e0aabea1970727c9df6a6e5231fab | |
parent | b167b90b4c3c8d7cbc3af6733ba27c27c0e6d026 [diff] | |
parent | c35a0dc08ef0a13a5b4172e981b0b56f527854a1 [diff] |
Merge "riscv64: say "x3" rather than "gp" in shadow call stack assembler."
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 7bf9b40..844f9d8 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp
@@ -140,7 +140,7 @@ #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 }