From 73452854c06c49caad04b92064e0c1fb40cca02a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 23 Jul 1998 20:04:55 +0000 Subject: Patch from Ralf Corsepius : Here is a pure sh-rtems bug-fix patch. The defines to enable the network to host conversion macros in netinet/in.h were missing in sh/cpu.h --- c/src/exec/score/cpu/sh/cpu.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/c/src/exec/score/cpu/sh/cpu.h b/c/src/exec/score/cpu/sh/cpu.h index 9ff5319aa3..2f6ee4515d 100644 --- a/c/src/exec/score/cpu/sh/cpu.h +++ b/c/src/exec/score/cpu/sh/cpu.h @@ -248,6 +248,24 @@ extern "C" { #define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned(16))) +/* + * Define what is required to specify how the network to host conversion + * routines are handled. + * + * NOTE: SHes can be big or little endian, the default is big endian + */ + +#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE + +/* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */ +#if defined(__LITTLE_ENDIAN__) +#define CPU_BIG_ENDIAN FALSE +#define CPU_LITTLE_ENDIAN TRUE +#else +#define CPU_BIG_ENDIAN TRUE +#define CPU_LITTLE_ENDIAN FALSE +#endif + /* * The following defines the number of bits actually used in the * interrupt field of the task mode. How those bits map to the -- cgit v1.2.3