diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 04:49:24 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-04-01 04:49:24 -0400 |
commit | 9f9d2dea175bc0ea884bd4815acf2004b859c2b5 (patch) | |
tree | a12f2c194e29f81a6a965ed0ff3c608a794df266 | |
parent | e8cc14e59ed3f66b84eedcc6ece65d40540edf47 (diff) |
mips: only define SYSCALL_ALIGN_64BIT for O32 ABIs
The 64bit register alignment issue only affects the O32 ABI, so wrap
the define accordingly. We don't want this being used for N32 ABIs.
This doesn't directly affect the N64 ABI since these files wouldn't
even be compiled for those targets (no need for the 32bit/64bit shim).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | libc/sysdeps/linux/mips/bits/uClibc_arch_features.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h b/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h index 6e564b18c..f81d1f000 100644 --- a/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h +++ b/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h @@ -12,7 +12,11 @@ #define __UCLIBC_MMAP_HAS_6_ARGS__ /* does your target align 64bit values in register pairs ? (32bit arches only) */ +#if _MIPS_SIM == _ABIO32 #define __UCLIBC_SYSCALL_ALIGN_64BIT__ +#else +#undef __UCLIBC_SYSCALL_ALIGN_64BIT__ +#endif /* does your target have a broken create_module() ? */ #undef __UCLIBC_BROKEN_CREATE_MODULE__ |