Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit de0d55c

Browse files
committed
library/panic_unwind: Add UNWIND_DATA_REG for RISC-V 32-bit
Signed-off-by: Alistair Francis <[email protected]>
1 parent e968f86 commit de0d55c

File tree

1 file changed

+3
-0
lines changed
  • library/panic_unwind/src

1 file changed

+3
-0
lines changed

library/panic_unwind/src/gcc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ const UNWIND_DATA_REG: (i32, i32) = (0, 1); // R0, R1
123123
#[cfg(target_arch = "riscv64")]
124124
const UNWIND_DATA_REG: (i32, i32) = (10, 11); // x10, x11
125125

126+
#[cfg(target_arch = "riscv32")]
127+
const UNWIND_DATA_REG: (i32, i32) = (10, 11); // x10, x11
128+
126129
// The following code is based on GCC's C and C++ personality routines. For reference, see:
127130
// https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/libsupc++/eh_personality.cc
128131
// https://github.com/gcc-mirror/gcc/blob/trunk/libgcc/unwind-c.c

0 commit comments

Comments
 (0)