summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/rtems/score/cpu.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-03-04 06:55:35 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-03-04 06:55:35 +0000
commit5372f167a971764ea518fcaee5b0559e73d5b0a6 (patch)
tree16bffeca054ae16194aa238b5945a90e3f16801c /cpukit/score/cpu/arm/rtems/score/cpu.h
parent2003-02-28 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-5372f167a971764ea518fcaee5b0559e73d5b0a6.tar.bz2
Merger from rtems-4-6-branch.
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/arm/rtems/score/cpu.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index 6d462a6bf5..6dd32eb0fc 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -278,9 +278,17 @@ extern "C" {
*/
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
-#define CPU_BIG_ENDIAN FALSE
-#define CPU_LITTLE_ENDIAN TRUE
+#if defined(__ARMEL__)
+#define CPU_BIG_ENDIAN FALSE
+#define CPU_LITTLE_ENDIAN TRUE
+#elif define(__ARMEB__)
+#define CPU_BIG_ENDIAN TRUE
+#define CPU_LITTLE_ENDIAN FALSE
+#else
+#error "Unknown endianness"
+#endif
+
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the
@@ -774,7 +782,7 @@ void _CPU_Context_Initialize(
# define _CPU_Priority_bits_index( _priority ) \
(_priority)
-# error "Implement CLZ verson of priority bit functions for ARMv5"
+# error "Implement CLZ version of priority bit functions for ARMv5"
#endif
/* end of Priority handler macros */