commit | 9a7155dbbde4d6710cdf23e3f836ca4f0002711c | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 10 02:00:03 2023 +0000 |
committer | Elliott Hughes <enh@google.com> | Thu Feb 23 01:21:07 2023 +0000 |
tree | 50f76d826281852e24be3ef14025bf8364ee672a | |
parent | 44e8fa7b1befe7f6fe9ba7d9ca107039ee57aae8 [diff] [blame] |
riscv64 SCS support. Bug: https://github.com/google/android-riscv64/issues/55 Test: treehugger Change-Id: I05d48a07a302305126942d38529ffa280640c7b7
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp index bde95ec..f584b27 100644 --- a/libc/bionic/pthread_exit.cpp +++ b/libc/bionic/pthread_exit.cpp
@@ -117,7 +117,7 @@ __rt_sigprocmask(SIG_BLOCK, &set, nullptr, sizeof(sigset64_t)); } -#ifdef __aarch64__ +#if defined(__aarch64__) || defined(__riscv) // Free the shadow call stack and guard pages. munmap(thread->shadow_call_stack_guard_region, SCS_GUARD_REGION_SIZE); #endif