From 9f9d2dea175bc0ea884bd4815acf2004b859c2b5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Apr 2013 04:49:24 -0400 Subject: 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 --- libc/sysdeps/linux/mips/bits/uClibc_arch_features.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/mips/bits') 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__ -- cgit v1.2.3