Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include If we are using EABI (aapcs-linux), the...
details: https://anonhg.NetBSD.org/src/rev/43beb8a692ec
branches: trunk
changeset: 780611:43beb8a692ec
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 31 07:21:06 2012 +0000
description:
If we are using EABI (aapcs-linux), then ALIGNBYTES needs to deal with
8-byte long types.
diffstat:
sys/arch/arm/include/cdefs.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 28bac1a90d85 -r 43beb8a692ec sys/arch/arm/include/cdefs.h
--- a/sys/arch/arm/include/cdefs.h Tue Jul 31 06:56:57 2012 +0000
+++ b/sys/arch/arm/include/cdefs.h Tue Jul 31 07:21:06 2012 +0000
@@ -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_ */
Home |
Main Index |
Thread Index |
Old Index