diff options
| author | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2016-12-06 16:00:09 -0600 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-12-29 21:30:01 -0500 |
| commit | 0751743d8625ef531099985e14fc0278d35938c2 (patch) | |
| tree | f3937ce1bd6a352d1ba6c1e131bdde4866e02e6d /src | |
| parent | ecd0ebb86b749e880a82b2050b487ac1b6fad35c (diff) | |
libpanic_unwind: UNWIND_DATA_REG for sparc64
Diffstat (limited to 'src')
| -rw-r--r-- | src/libpanic_unwind/gcc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libpanic_unwind/gcc.rs b/src/libpanic_unwind/gcc.rs index 73264fab69c..e8b3a9a42c2 100644 --- a/src/libpanic_unwind/gcc.rs +++ b/src/libpanic_unwind/gcc.rs @@ -133,6 +133,9 @@ const UNWIND_DATA_REG: (i32, i32) = (3, 4); // R3, R4 / X3, X4 #[cfg(target_arch = "s390x")] const UNWIND_DATA_REG: (i32, i32) = (6, 7); // R6, R7 +#[cfg(target_arch = "sparc64")] +const UNWIND_DATA_REG: (i32, i32) = (24, 25); // I0, I1 + // The following code is based on GCC's C and C++ personality routines. For reference, see: // https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/libsupc++/eh_personality.cc // https://github.com/gcc-mirror/gcc/blob/trunk/libgcc/unwind-c.c |
