summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-18 10:59:57 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-18 10:59:57 +0000
commit1f6dc36414c511b3ae4665e2c5c98d5eb8107cc1 (patch)
tree7eeb3a014e713cd14cdf4783141026ff73b6aa7b /cpukit/score/cpu/powerpc
parent(CPU_PROVIDES_IDLE_THREAD_BODY, CPU_STACK_GROWS_UP, CPU_STRUCTURE_ALIGNMENT, ... (diff)
downloadrtems-1f6dc36414c511b3ae4665e2c5c98d5eb8107cc1.tar.bz2
2005-02-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Derive CPU_{BIG|LITTLE}_ENDIAN from __BIG_ENDIAN__.
Diffstat (limited to 'cpukit/score/cpu/powerpc')
-rw-r--r--cpukit/score/cpu/powerpc/ChangeLog5
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h7
2 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog
index 1a2adac236..89a4bfc157 100644
--- a/cpukit/score/cpu/powerpc/ChangeLog
+++ b/cpukit/score/cpu/powerpc/ChangeLog
@@ -1,5 +1,10 @@
2005-02-18 Ralf Corsepius <ralf.corsepius@rtems.org>
+ * rtems/score/cpu.h: Derive CPU_{BIG|LITTLE}_ENDIAN from
+ __BIG_ENDIAN__.
+
+2005-02-18 Ralf Corsepius <ralf.corsepius@rtems.org>
+
* rtems/score/cpu.h (CPU_PROVIDES_IDLE_THREAD_BODY,
CPU_STACK_GROWS_UP, CPU_STRUCTURE_ALIGNMENT,
CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES, CPU_BIG_ENDIAN,
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index b627ff9b40..0a28cb8686 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -117,9 +117,14 @@
*/
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
+
+#if defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN)
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
-
+#else
+#define CPU_BIG_ENDIAN FALSE
+#define CPU_LITTLE_ENDIAN TRUE
+#endif
/*
* Processor defined structures required for cpukit/score.