diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-03 17:24:03 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-03 17:24:03 +0200 |
commit | c0f118c8869b9095612dfcc4a279e957b67a8efa (patch) | |
tree | 67ae192b40c6e52c6b32de596f89c127b69fa22d /libc/sysdeps/linux/powerpc/jmpbuf-offsets.h | |
parent | 493d0cc28b0d0fa1dc571ffc876b554376ccdd47 (diff) |
ppc: cleanup unsupported ppc64 code
Remove ppc64 bits and bytes, as we don't support ppc64 and
it makes the code more readable without the dead code.
Diffstat (limited to 'libc/sysdeps/linux/powerpc/jmpbuf-offsets.h')
-rw-r--r-- | libc/sysdeps/linux/powerpc/jmpbuf-offsets.h | 25 |
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 |