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 Also test for __AARCH64EB__ as well as ...
details: https://anonhg.NetBSD.org/src/rev/9099e5afd0cc
branches: trunk
changeset: 326426:9099e5afd0cc
user: matt <matt%NetBSD.org@localhost>
date: Wed Jan 29 01:03:13 2014 +0000
description:
Also test for __AARCH64EB__ as well as __ARMEB__ for big-endian.
diffstat:
sys/arch/arm/include/endian_machdep.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r 48d109d07c62 -r 9099e5afd0cc sys/arch/arm/include/endian_machdep.h
--- a/sys/arch/arm/include/endian_machdep.h Wed Jan 29 01:01:14 2014 +0000
+++ b/sys/arch/arm/include/endian_machdep.h Wed Jan 29 01:03:13 2014 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: endian_machdep.h,v 1.8 2006/01/30 21:52:38 dsl Exp $ */
+/* $NetBSD: endian_machdep.h,v 1.9 2014/01/29 01:03:13 matt Exp $ */
-/* GCC predefines __ARMEB__ when building for big-endian ARM. */
-#ifdef __ARMEB__
+/* __ARMEB__ or __AARCH64EB__ is predefined when building big-endian ARM. */
+#if defined(__ARMEB__) || defined(__AARCH64EB__)
#define _BYTE_ORDER _BIG_ENDIAN
#else
#define _BYTE_ORDER _LITTLE_ENDIAN
Home |
Main Index |
Thread Index |
Old Index