diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-23 20:04:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-07-23 20:04:55 +0000 |
commit | 73452854c06c49caad04b92064e0c1fb40cca02a (patch) | |
tree | be3be09323ce7c66e5c1a4c994c9149fba141dc8 /c/src/exec/score | |
parent | Patch from Dario Alcocer <alcocer@connectnet.com> and Ralf Corsepius (diff) | |
download | rtems-73452854c06c49caad04b92064e0c1fb40cca02a.tar.bz2 |
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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
Diffstat (limited to 'c/src/exec/score')
-rw-r--r-- | c/src/exec/score/cpu/sh/cpu.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -249,6 +249,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 * CPU interrupt levels is defined by the routine _CPU_ISR_Set_level(). |