Module Name: src
Committed By: matt
Date: Tue Jul 31 07:21:06 UTC 2012
Modified Files:
src/sys/arch/arm/include: cdefs.h
Log Message:
If we are using EABI (aapcs-linux), then ALIGNBYTES needs to deal with
8-byte long types.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/include/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/cdefs.h
diff -u src/sys/arch/arm/include/cdefs.h:1.5 src/sys/arch/arm/include/cdefs.h:1.6
--- src/sys/arch/arm/include/cdefs.h:1.5 Thu Jul 12 21:29:04 2012
+++ src/sys/arch/arm/include/cdefs.h Tue Jul 31 07:21:06 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.5 2012/07/12 21:29:04 matt Exp $ */
+/* $NetBSD: cdefs.h,v 1.6 2012/07/31 07:21:06 matt Exp $ */
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
@@ -26,6 +26,10 @@
#define _ARM_ARCH_4T
#endif
+#ifdef __ARM_EABI__
+#define __ALIGNBYTES (8 - 1)
+#else
#define __ALIGNBYTES (sizeof(int) - 1)
+#endif
#endif /* !_MACHINE_CDEFS_H_ */