Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Re-introduce <arm/endian_machdep.h>, this time usin...



details:   https://anonhg.NetBSD.org/src/rev/79e03848f19c
branches:  trunk
changeset: 503884:79e03848f19c
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Feb 17 14:55:44 2001 +0000

description:
Re-introduce <arm/endian_machdep.h>, this time using GCC's idea of the target
endianness.

diffstat:

 sys/arch/arm/include/endian_machdep.h   |  8 ++++++++
 sys/arch/arm26/include/endian_machdep.h |  4 ++--
 sys/arch/arm32/include/endian_machdep.h |  4 ++--
 3 files changed, 12 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 3ba32d5ad692 -r 79e03848f19c sys/arch/arm/include/endian_machdep.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm/include/endian_machdep.h     Sat Feb 17 14:55:44 2001 +0000
@@ -0,0 +1,8 @@
+/* $NetBSD: endian_machdep.h,v 1.3 2001/02/17 14:55:44 bjh21 Exp $ */
+
+/* GCC predefines __ARMEB__ when building for big-endian ARM. */
+#ifdef __ARMEB__
+#define _BYTE_ORDER _BIG_ENDIAN
+#else
+#define _BYTE_ORDER _LITTLE_ENDIAN
+#endif
diff -r 3ba32d5ad692 -r 79e03848f19c sys/arch/arm26/include/endian_machdep.h
--- a/sys/arch/arm26/include/endian_machdep.h   Sat Feb 17 12:29:45 2001 +0000
+++ b/sys/arch/arm26/include/endian_machdep.h   Sat Feb 17 14:55:44 2001 +0000
@@ -1,3 +1,3 @@
-/*     $NetBSD: endian_machdep.h,v 1.1 2000/05/09 21:55:59 bjh21 Exp $ */
+/*     $NetBSD: endian_machdep.h,v 1.2 2001/02/17 14:55:45 bjh21 Exp $ */
 
-#define _BYTE_ORDER _LITTLE_ENDIAN
+#include <arm/endian_machdep.h>
diff -r 3ba32d5ad692 -r 79e03848f19c sys/arch/arm32/include/endian_machdep.h
--- a/sys/arch/arm32/include/endian_machdep.h   Sat Feb 17 12:29:45 2001 +0000
+++ b/sys/arch/arm32/include/endian_machdep.h   Sat Feb 17 14:55:44 2001 +0000
@@ -1,3 +1,3 @@
-/*     $NetBSD: endian_machdep.h,v 1.1 2000/03/17 00:09:19 mycroft Exp $       */
+/*     $NetBSD: endian_machdep.h,v 1.2 2001/02/17 14:55:45 bjh21 Exp $ */
 
-#define _BYTE_ORDER _LITTLE_ENDIAN
+#include <arm/endian_machdep.h>



Home | Main Index | Thread Index | Old Index