From f0f7bd6b1ad2052e318046fcbdf0070186455c91 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 11 Jan 2016 19:01:41 +0000 Subject: [PATCH] cpu: add a standardised BIG_ENDIAN define --- Kernel/cpu-68000/cpu.h | 2 ++ Kernel/cpu-6809/cpu.h | 2 ++ Kernel/cpu-68hc11/cpu.h | 1 + 3 files changed, 5 insertions(+) diff --git a/Kernel/cpu-68000/cpu.h b/Kernel/cpu-68000/cpu.h index 19a7d95a..6453530f 100644 --- a/Kernel/cpu-68000/cpu.h +++ b/Kernel/cpu-68000/cpu.h @@ -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 diff --git a/Kernel/cpu-6809/cpu.h b/Kernel/cpu-6809/cpu.h index ff029419..f623e6fa 100644 --- a/Kernel/cpu-6809/cpu.h +++ b/Kernel/cpu-6809/cpu.h @@ -67,3 +67,5 @@ typedef union { /* this structure is endian dependent */ #define used(x) #define gcc_miscompile_workaround() __asm("":::"memory") + +#define BIG_ENDIAN diff --git a/Kernel/cpu-68hc11/cpu.h b/Kernel/cpu-68hc11/cpu.h index 15328ae9..5714a44f 100644 --- a/Kernel/cpu-68hc11/cpu.h +++ b/Kernel/cpu-68hc11/cpu.h @@ -67,3 +67,4 @@ typedef union { /* this structure is endian dependent */ /* Sane behaviour for unused parameters */ #define used(x) +#define BIG_ENDIAN -- 2.34.1