Module Name: src
Committed By: matt
Date: Wed Jan 29 01:03:13 UTC 2014
Modified Files:
src/sys/arch/arm/include: endian_machdep.h
Log Message:
Also test for __AARCH64EB__ as well as __ARMEB__ for big-endian.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/include/endian_machdep.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/endian_machdep.h
diff -u src/sys/arch/arm/include/endian_machdep.h:1.8 src/sys/arch/arm/include/endian_machdep.h:1.9
--- src/sys/arch/arm/include/endian_machdep.h:1.8 Mon Jan 30 21:52:38 2006
+++ src/sys/arch/arm/include/endian_machdep.h Wed Jan 29 01:03:13 2014
@@ -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