Skip to content

Commit 58c7a35

Browse files
committed
Add UNWIND_DATA_REG.
1 parent 3bd2c6c commit 58c7a35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libpanic_unwind/gcc.rs

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

120+
#[cfg(target_arch = "xtensa")]
121+
const UNWIND_DATA_REG: (i32, i32) = (2, 3); // A2, A3
122+
120123
// The following code is based on GCC's C and C++ personality routines. For reference, see:
121124
// https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/libsupc++/eh_personality.cc
122125
// https://github.com/gcc-mirror/gcc/blob/trunk/libgcc/unwind-c.c

0 commit comments

Comments
 (0)