diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 521b0787e7..0c5d7b338c 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,10 @@ +2007-12-05 Till Straumann + + * 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). + 2007-12-05 Joel Sherrill * new-exceptions/raw_exception.c: Conditionalize call to 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"