summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authormirabilos <m@mirbsd.org>2019-10-09 21:57:45 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2019-10-15 16:18:11 (GMT)
commit1a0a6bd7d3d1c22a84ec423b8562376979169b31 (patch)
tree370b0dfe88dd0e25fdcd5f3f7bf7f49c0d1e03a3 /libc/sysdeps/linux
parentd05b08ccf92cf121549dc96aebae6deeb0a9c675 (diff)
sparc64: Use the jmpbuf-offsets.h header instead of duplicating it
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/sparc64/__longjmp.S7
-rw-r--r--libc/sysdeps/linux/sparc64/setjmp.S7
2 files changed, 2 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/sparc64/__longjmp.S b/libc/sysdeps/linux/sparc64/__longjmp.S
index 79cefcc..49cef23 100644
--- a/libc/sysdeps/linux/sparc64/__longjmp.S
+++ b/libc/sysdeps/linux/sparc64/__longjmp.S
@@ -16,12 +16,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-
-/* Offsets into the jmp_buf structure. */
-
-#define O_mask_was_saved 512
-#define O_gregs 32
-#define O_g1 (O_gregs + 4*8)
+#include <jmpbuf-offsets.h>
ENTRY(__longjmp)
diff --git a/libc/sysdeps/linux/sparc64/setjmp.S b/libc/sysdeps/linux/sparc64/setjmp.S
index b30c7d7..a329bb7 100644
--- a/libc/sysdeps/linux/sparc64/setjmp.S
+++ b/libc/sysdeps/linux/sparc64/setjmp.S
@@ -19,12 +19,7 @@
Linux/Sparc64. */
#include <sysdep.h>
-
-/* Offsets into the jmp_buf structure. */
-
-#define O_mask_was_saved 512
-#define O_gregs 32
-#define O_g1 (O_gregs + 4*8)
+#include <jmpbuf-offsets.h>
/* int _setjmp(jmp_buf) */