summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-12-06 00:07:21 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-12-06 00:07:21 +0000
commita52ab9e1fbc7d804bd8fa528e3a337b0918ba85f (patch)
tree49c02f90f7ae5649bd500e45ea83af2c6d15fe32 /c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
parent2007-12-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-a52ab9e1fbc7d804bd8fa528e3a337b0918ba85f.tar.bz2
2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/powerpc.h: added a #ifdef __ppc_generic branch. The goal is eventually to make this the starting point for cleanup (remove as many branches as possible; replace by run-time tests if necessary).
Diffstat (limited to 'c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h')
-rw-r--r--c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
index fc9a66647c..727e9ad0d4 100644
--- a/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
+++ b/c/src/lib/libcpu/powerpc/rtems/powerpc/powerpc.h
@@ -272,6 +272,12 @@ extern "C" {
#define PPC_CACHE_ALIGNMENT 32
#define PPC_INTERRUPT_MAX 125
#define PPC_USE_MULTIPLE 1
+
+#elif defined(__ppc_generic)
+/* PPC_INTERRUPT_MAX and PPC_CACHE_ALIGNMENT already defined by score/powerc.h */
+#ifndef PPC_ABI
+#define PPC_ABI PPC_ABI_SVR4
+#endif
#else
#error "Unsupported CPU Model"