summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/jmpbuf-offsets.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/jmpbuf-offsets.h')
-rw-r--r--libc/sysdeps/linux/powerpc/jmpbuf-offsets.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/libc/sysdeps/linux/powerpc/jmpbuf-offsets.h b/libc/sysdeps/linux/powerpc/jmpbuf-offsets.h
index eb7d7fd17..5639ac5ed 100644
--- a/libc/sysdeps/linux/powerpc/jmpbuf-offsets.h
+++ b/libc/sysdeps/linux/powerpc/jmpbuf-offsets.h
@@ -16,25 +16,12 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#include <bits/wordsize.h>
-
#define JB_GPR1 0 /* Also known as the stack pointer */
#define JB_GPR2 1
#define JB_LR 2 /* The address we will return to */
-#if __WORDSIZE == 64
-# define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18*2 words total. */
-# define JB_CR 21 /* Condition code registers with the VRSAVE at */
- /* offset 172 (low half of the double word. */
-# define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total. */
-# define JB_SIZE (64 * 8) /* As per PPC64-VMX ABI. */
-# define JB_VRSAVE 21 /* VRSAVE shares a double word with the CR at offset */
- /* 168 (high half of the double word). */
-# define JB_VRS 40 /* VRs 20 through 31 are saved, 12*4 words total. */
-#else
-# define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18 in total. */
-# define JB_CR 21 /* Condition code registers. */
-# define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total. */
-# define JB_SIZE ((64 + (12 * 4)) * 4)
-# define JB_VRSAVE 62
-# define JB_VRS 64
-#endif
+#define JB_GPRS 3 /* GPRs 14 through 31 are saved, 18 in total. */
+#define JB_CR 21 /* Condition code registers. */
+#define JB_FPRS 22 /* FPRs 14 through 31 are saved, 18*2 words total. */
+#define JB_SIZE ((64 + (12 * 4)) * 4)
+#define JB_VRSAVE 62
+#define JB_VRS 64