Skip to content

Commit 0751743

Browse files
jakllschJorge Aparicio
authored and
Jorge Aparicio
committed
libpanic_unwind: UNWIND_DATA_REG for sparc64
1 parent ecd0ebb commit 0751743

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libpanic_unwind/gcc.rs

+3
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)