Skip to content

Commit 4e932f1

Browse files
committed
libpanic_unwind: UNWIND_DATA_REG for sparc64
1 parent d3f7858 commit 4e932f1

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
@@ -133,6 +133,9 @@ const UNWIND_DATA_REG: (i32, i32) = (3, 4); // R3, R4 / X3, X4
133133
#[cfg(target_arch = "s390x")]
134134
const UNWIND_DATA_REG: (i32, i32) = (6, 7); // R6, R7
135135

136+
#[cfg(target_arch = "sparc64")]
137+
const UNWIND_DATA_REG: (i32, i32) = (24, 25); // I0, I1
138+
136139
// The following code is based on GCC's C and C++ personality routines. For reference, see:
137140
// https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/libsupc++/eh_personality.cc
138141
// https://github.com/gcc-mirror/gcc/blob/trunk/libgcc/unwind-c.c

0 commit comments

Comments
 (0)