Merge "riscv64 BIONIC_STOP_UNWIND." am: 002b57c00e

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2243977

Change-Id: Iddac964c1fec24527e62b7c06f607df749ef461b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-10-07 23:35:59 +00:00 committed by Automerger Merge Worker
commit ca89fdddf7

View file

@ -55,6 +55,8 @@ static inline T* align_up(T* p, size_t align) {
#define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined x30") #define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined x30")
#elif defined(__i386__) #elif defined(__i386__)
#define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined \%eip") #define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined \%eip")
#elif defined(__riscv)
#define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined ra")
#elif defined(__x86_64__) #elif defined(__x86_64__)
#define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined \%rip") #define BIONIC_STOP_UNWIND asm volatile(".cfi_undefined \%rip")
#endif #endif