From 1a0a6bd7d3d1c22a84ec423b8562376979169b31 Mon Sep 17 00:00:00 2001 From: mirabilos Date: Wed, 9 Oct 2019 23:57:45 +0200 Subject: sparc64: Use the jmpbuf-offsets.h header instead of duplicating it --- libc/sysdeps/linux/sparc64/__longjmp.S | 7 +------ libc/sysdeps/linux/sparc64/setjmp.S | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/libc/sysdeps/linux/sparc64/__longjmp.S b/libc/sysdeps/linux/sparc64/__longjmp.S index 79cefcc9d..49cef2351 100644 --- a/libc/sysdeps/linux/sparc64/__longjmp.S +++ b/libc/sysdeps/linux/sparc64/__longjmp.S @@ -16,12 +16,7 @@ . */ #include - -/* Offsets into the jmp_buf structure. */ - -#define O_mask_was_saved 512 -#define O_gregs 32 -#define O_g1 (O_gregs + 4*8) +#include ENTRY(__longjmp) diff --git a/libc/sysdeps/linux/sparc64/setjmp.S b/libc/sysdeps/linux/sparc64/setjmp.S index b30c7d744..a329bb7c1 100644 --- a/libc/sysdeps/linux/sparc64/setjmp.S +++ b/libc/sysdeps/linux/sparc64/setjmp.S @@ -19,12 +19,7 @@ Linux/Sparc64. */ #include - -/* Offsets into the jmp_buf structure. */ - -#define O_mask_was_saved 512 -#define O_gregs 32 -#define O_g1 (O_gregs + 4*8) +#include /* int _setjmp(jmp_buf) */ -- cgit v1.2.3