cpu: add a standardised BIG_ENDIAN define
authorAlan Cox <alan@linux.intel.com>
Mon, 11 Jan 2016 19:01:41 +0000 (19:01 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 11 Jan 2016 19:01:41 +0000 (19:01 +0000)
Kernel/cpu-68000/cpu.h
Kernel/cpu-6809/cpu.h
Kernel/cpu-68hc11/cpu.h

index 19a7d95..6453530 100644 (file)
@@ -70,3 +70,5 @@ typedef union {            /* this structure is endian dependent */
 register struct u_data *udata_ptr asm ("a5");
 
 #define udata (*udata_ptr)
+
+#define BIG_ENDIAN
index ff02941..f623e6f 100644 (file)
@@ -67,3 +67,5 @@ typedef union {            /* this structure is endian dependent */
 #define used(x)
 
 #define gcc_miscompile_workaround()    __asm("":::"memory")
+
+#define BIG_ENDIAN
index 15328ae..5714a44 100644 (file)
@@ -67,3 +67,4 @@ typedef union {            /* this structure is endian dependent */
 /* Sane behaviour for unused parameters */
 #define used(x)
 
+#define BIG_ENDIAN