diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-03-17 05:24:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-03-17 05:24:30 +0000 |
commit | 01a76a6f9f30c560f51f35380645291a7e17f82f (patch) | |
tree | 09e723ecaae976a7c4faf1f6034e91ac2cb667a2 /cpukit/score/cpu/mips/rtems/score/cpu.h | |
parent | Regenerate. (diff) | |
download | rtems-01a76a6f9f30c560f51f35380645291a7e17f82f.tar.bz2 |
2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Setup CPU_*_ENDIAN from GCC's__MIPS{EL|EB}__.
(Partial merger of submission by Bruce Robinson <brucer@pmccorp.com>).
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 219047a098..fc78cc7ea8 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -312,8 +312,17 @@ extern "C" { */ #define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE + +/* __MIPSEB__ or __MIPSEL__ is defined by GCC based on -EB or -EL command line options */ +#if defined(__MIPSEB__) #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE +#elif defined(__MIPSEL__) +#define CPU_BIG_ENDIAN FALSE +#define CPU_LITTLE_ENDIAN TRUE +#else +#error "Unknown endianness" +#endif /* * The following defines the number of bits actually used in the |