Browse Source

sparc64: Use the jmpbuf-offsets.h header instead of duplicating it

mirabilos 5 years ago
parent
commit
1a0a6bd7d3
2 changed files with 2 additions and 12 deletions
  1. 1 6
      libc/sysdeps/linux/sparc64/__longjmp.S
  2. 1 6
      libc/sysdeps/linux/sparc64/setjmp.S

+ 1 - 6
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)
 

+ 1 - 6
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) */