summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2008-07-10 21:48:24 +0000
committerTill Straumann <strauman@slac.stanford.edu>2008-07-10 21:48:24 +0000
commit06aab392f07384c27b8b8162d4fc2cde1dfe51f2 (patch)
treee7301a9c9aa2dde733baa1bd9dee5ace90f30e16 /cpukit/score/cpu/powerpc/rtems/score/powerpc.h
parent*** empty log message *** (diff)
downloadrtems-06aab392f07384c27b8b8162d4fc2cde1dfe51f2.tar.bz2
2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h, cpukit/score/cpu/powerpc/rtems/score/cpu.h, cpukit/score/cpu/powerpc/rtems/score/powerpc.h: Removed all macro definitions which depended on the compiler defining a PPC CPU-model dependent symbol. Macros which were not used by cpukit have been moved to libcpu/powerpc/rtems/powerpc/powerpc.h.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/powerpc.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/powerpc.h470
1 files changed, 34 insertions, 436 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
index 29a2a2a70d..a67059d1ba 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h
@@ -59,184 +59,21 @@ extern "C" {
/*
* This file contains the information required to build
- * RTEMS for a particular member of the PowerPC family. It does
- * this by setting variables to indicate which implementation
- * dependent features are present in a particular member
- * of the family.
- *
- * The following architectural feature definitions are defaulted
- * unless specifically set by the model definition:
- *
- * + PPC_INTERRUPT_MAX - 16
- * + PPC_CACHE_ALIGNMENT - 32
- * + PPC_HAS_FPU - 1
- * + PPC_HAS_DOUBLE - 1 if PPC_HAS_FPU,
- * - 0 otherwise
- */
-
-/*
- * Figure out all CPU Model Feature Flags based upon compiler
- * predefines.
- */
-
-#if defined(ppc403) || defined(ppc405)
-/*
- * IBM 403
- *
- * Developed for 403GA. Book checked for 403GB.
- *
- * Does not have user mode.
- */
-
-#if defined(ppc403)
-#define CPU_MODEL_NAME "PowerPC 403"
-#elif defined (ppc405)
-#define CPU_MODEL_NAME "PowerPC 405"
-#endif
-#define PPC_ALIGNMENT 4
-#define PPC_CACHE_ALIGNMENT 16
-
-#elif defined(mpc555)
-
-#define CPU_MODEL_NAME "PowerPC 555"
-
-/* Copied from mpc505 */
-#define PPC_ALIGNMENT 4
-#define PPC_CACHE_ALIGNMENT 16
-
-#elif defined(mpc505) || defined(mpc509)
-/*
- * Submitted by Sergei Organov <osv@Javad.RU> as a patch against
- * 3.6.0 long after 4.0 was released. This is just an attempt
- * to get the setting correct.
- */
-
-#define CPU_MODEL_NAME "PowerPC 505/509"
-
-#define PPC_ALIGNMENT 4
-#define PPC_CACHE_ALIGNMENT 16
-
-#elif defined(ppc601)
-
-/*
- * Submitted with original port -- book checked only.
- */
-
-#define CPU_MODEL_NAME "PowerPC 601"
-
-#define PPC_ALIGNMENT 8
-
-#elif defined(ppc602)
-/*
- * Submitted with original port -- book checked only.
- */
-
-#define CPU_MODEL_NAME "PowerPC 602"
-
-#define PPC_ALIGNMENT 4
-#define PPC_HAS_DOUBLE 0
-
-#elif defined(ppc603)
-/*
- * Submitted with original port -- book checked only.
+ * RTEMS for the PowerPC family.
*/
-#define CPU_MODEL_NAME "PowerPC 603"
-
-#define PPC_ALIGNMENT 8
-#define PPC_CACHE_ALIGNMENT 16
-
-#elif defined(ppc603e)
-
-#define CPU_MODEL_NAME "PowerPC 603e"
-/*
- * Submitted with original port.
- *
- * Known to work on real hardware.
- */
-
-#define PPC_ALIGNMENT 8
-#define PPC_CACHE_ALIGNMENT 16
-
-#elif defined(mpc604)
-/*
- * Submitted with original port -- book checked only.
- */
-
-#define CPU_MODEL_NAME "PowerPC 604"
-
-#define PPC_ALIGNMENT 8
-
-#elif defined(mpc860)
-/*
- * Added by Jay Monkman (jmonkman@frasca.com) 6/28/98
- * with some changes by Darlene Stewart (Darlene.Stewart@iit.nrc.ca)
- */
-#define CPU_MODEL_NAME "PowerPC MPC860"
-
-#define PPC_ALIGNMENT 4
-#define PPC_CACHE_ALIGNMENT 16
-#define PPC_INTERRUPT_MAX 71
-
-#elif defined(mpc821)
-/*
- * Added by Andrew Bray <andy@chaos.org.uk> 6/April/1999
- */
-#define CPU_MODEL_NAME "PowerPC MPC821"
-
-#define PPC_ALIGNMENT 4
-#define PPC_CACHE_ALIGNMENT 16
-#define PPC_INTERRUPT_MAX 71
-
-#elif defined(mpc750)
-#define CPU_MODEL_NAME "PowerPC 750"
-#define PPC_ALIGNMENT 8
-
-#elif defined(__ALTIVEC__) \
- || defined(mpc7400) || defined(mpc7450) || defined(mpc7455)
-
-/* ppc altivec family */
-#if defined(mpc7400)
-#define CPU_MODEL_NAME "PowerPC 7400"
-#elif defined(mpc7450)
-#define CPU_MODEL_NAME "PowerPC 7400"
-#elif defined(mpc7455)
-#define CPU_MODEL_NAME "PowerPC 7455"
-#else
-#define CPU_MODEL_NAME "PowerPC Altivec"
-#endif
-
-#define PPC_ALIGNMENT 8
-#define PPC_CACHE_ALIGNMENT 32
-
-#elif defined(mpc8260)
-/*
- * Added by Andy Dachs <a.dachs@sstl.co.uk> 23/11/2000
- */
-#define CPU_MODEL_NAME "PowerPC MPC8260"
-
-#define PPC_ALIGNMENT 8
-#define PPC_CACHE_ALIGNMENT 32
-#define PPC_INTERRUPT_MAX 125
-#elif defined(__ppc_generic)
-
/* Generic ppc */
#ifdef _SOFT_FLOAT
-#define CPU_MODEL_NAME "PowerPC Generic (no FPU)"
-#elif defined(__NO_FPRS__)
-#define CPU_MODEL_NAME "PowerPC Generic (E500/float-gprs)"
+#define CPU_MODEL_NAME "Generic (no FPU)"
+#elif defined(__NO_FPRS__) || defined(__SPE__)
+#define CPU_MODEL_NAME "Generic (E500/float-gprs/SPE)"
#else
-#define CPU_MODEL_NAME "PowerPC Generic"
+#define CPU_MODEL_NAME "Generic (classic FPU)"
#endif
-#define PPC_ALIGNMENT 8
-
-#else
-
-#error "Unsupported CPU Model"
-
-#endif
+#define PPC_ALIGNMENT 8
+#define PPC_STRUCTURE_ALIGNMENT 32
/*
* Application binary interfaces.
@@ -244,6 +81,7 @@ extern "C" {
* PPC_ABI MUST be defined as one of these.
* Only big endian is currently supported.
*/
+
/*
* SVR4 ABI
*/
@@ -261,65 +99,33 @@ extern "C" {
#define PPC_ABI PPC_ABI_EABI
#endif
-#if (PPC_ABI == PPC_ABI_SVR4)
+#if (PPC_ABI == PPC_ABI_SVR4) || defined(__ALTIVEC__)
#define PPC_STACK_ALIGNMENT 16
#elif (PPC_ABI == PPC_ABI_EABI)
+#if 1
+/* Till.S: 2008/07/10; AFAIK, the CPU_STACK_ALIGNMENT is only
+ * used to align the top of the stack. We don't lose much
+ * if we always align TOS to 16-bytes but we then are always
+ * OK, even if the user tells the compiler to generate 16-byte
+ * alignment.
+ */
+#define PPC_STACK_ALIGNMENT 16
+#else
#define PPC_STACK_ALIGNMENT 8
+#endif
#else
#error "PPC_ABI is not properly defined"
#endif
/*
- * Assemblers.
- * PPC_ASM MUST be defined as one of these.
- *
- * PPC_ASM_ELF: ELF assembler. Currently used for all ABIs.
- *
- * NOTE: Only PPC_ABI_ELF is currently fully supported.
- */
-
-#define PPC_ASM_ELF 0
-
-/*
- * Default to the assembler format used by the current GNU tools.
- */
-
-#ifndef PPC_ASM
-#define PPC_ASM PPC_ASM_ELF
-#endif
-
-/*
- * If the maximum number of exception sources has not been defined,
- * then default it to 16.
+ * Assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
*/
-#ifndef PPC_INTERRUPT_MAX
-#define PPC_INTERRUPT_MAX 16
-#endif
-
-/*
- * Unless specified otherwise, the cache line size is defaulted to 32.
- *
- * The derive the power of 2 the cache line is.
- */
-
-#ifndef PPC_CACHE_ALIGNMENT
-#define PPC_CACHE_ALIGNMENT 32
-#endif
-
-/*
- * Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
- * FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
- * and disallow explicitly setting PPC_HAS_FPU?
- */
-
-#ifndef PPC_HAS_FPU
#if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) /* e500 has unified integer/FP registers */
#define PPC_HAS_FPU 0
#else
#define PPC_HAS_FPU 1
#endif
-#endif
/*
* Unless specified above, If the model has FP support, it is assumed to
@@ -329,245 +135,37 @@ extern "C" {
* NOT have double length FP registers.
*/
-#ifndef PPC_HAS_DOUBLE
#if (PPC_HAS_FPU)
#define PPC_HAS_DOUBLE 1
#else
#define PPC_HAS_DOUBLE 0
#endif
-#endif
/*
- * The following exceptions are not maskable, and are not
- * necessarily predictable, so cannot be offered to RTEMS:
- * Alignment exception - handled by the CPU module
- * Data exceptions.
- * Instruction exceptions.
- */
-
-/*
- * Base Interrupt vectors supported on all models.
+ * Initial value for the FPSCR register
*/
-#define PPC_IRQ_SYSTEM_RESET 0 /* 0x00100 - System reset. */
-#define PPC_IRQ_MCHECK 1 /* 0x00200 - Machine check */
-#define PPC_IRQ_PROTECT 2 /* 0x00300 - Protection violation */
-#define PPC_IRQ_ISI 3 /* 0x00400 - Instruction Fetch error */
-#define PPC_IRQ_EXTERNAL 4 /* 0x00500 - External interrupt */
-#define PPC_IRQ_ALIGNMENT 5 /* 0X00600 - Alignment exception */
-#define PPC_IRQ_PROGRAM 6 /* 0x00700 - Program exception */
-#define PPC_IRQ_NOFP 7 /* 0x00800 - Floating point unavailable */
-#define PPC_IRQ_DECREMENTER 8 /* 0x00900 - Decrementer interrupt */
-#define PPC_IRQ_RESERVED_A 9 /* 0x00a00 - Implementation Reserved */
-#define PPC_IRQ_RESERVED_B 10 /* 0x00b00 - Implementation Reserved */
-#define PPC_IRQ_SCALL 11 /* 0x00c00 - System call */
-#define PPC_IRQ_TRACE 12 /* 0x00d00 - Trace Exception */
-#define PPC_IRQ_FP_ASST 13 /* ox00e00 - Floating point assist */
-#define PPC_STD_IRQ_LAST PPC_IRQ_FP_ASST
-
-#define PPC_IRQ_FIRST PPC_IRQ_SYSTEM_RESET
-
-#if defined(ppc403) || defined(ppc405)
-
-#define PPC_IRQ_CRIT PPC_IRQ_SYSTEM_RESET /*0x00100- Critical int. pin */
-#define PPC_IRQ_PIT (PPC_STD_IRQ_LAST+1) /*0x01000- Pgm interval timer*/
-#define PPC_IRQ_FIT (PPC_STD_IRQ_LAST+2) /*0x01010- Fixed int. timer */
-#define PPC_IRQ_WATCHDOG (PPC_STD_IRQ_LAST+3) /*0x01020- Watchdog timer */
-#define PPC_IRQ_DEBUG (PPC_STD_IRQ_LAST+4) /*0x02000- Debug exceptions */
-#define PPC_IRQ_LAST PPC_IRQ_DEBUG
-
-#elif defined(mpc505) || defined(mpc509)
-#define PPC_IRQ_SOFTEMU (PPC_STD_IRQ_LAST+1) /* Software emulation. */
-#define PPC_IRQ_DATA_BP (PPC_STD_IRQ_LAST+ 2)
-#define PPC_IRQ_INST_BP (PPC_STD_IRQ_LAST+ 3)
-#define PPC_IRQ_MEXT_BP (PPC_STD_IRQ_LAST+ 4)
-#define PPC_IRQ_NMEXT_BP (PPC_STD_IRQ_LAST+ 5)
-
-#elif defined(mpc555)
-#define PPC_IRQ_SOFTEMU (PPC_STD_IRQ_LAST+1) /* Software emulation. */
-#define PPC_IRQ_INST_PE (PPC_STD_IRQ_LAST+2) /* Insn protection error */
-#define PPC_IRQ_DATA_PE (PPC_STD_IRQ_LAST+3) /* Data protection error */
-#define PPC_IRQ_DATA_BP (PPC_STD_IRQ_LAST+4) /* Data breakpoint */
-#define PPC_IRQ_INST_BP (PPC_STD_IRQ_LAST+5) /* Insn breakpoint */
-#define PPC_IRQ_MEXT_BP (PPC_STD_IRQ_LAST+6) /* Maskable ext bkpt */
-#define PPC_IRQ_NMEXT_BP (PPC_STD_IRQ_LAST+7) /* Non-maskable ext bkpt */
-#define PPC_IRQ_LAST PPC_IRQ_NMEXT_BP
-
-#elif defined(ppc601)
-#undef PPC_IRQ_TRACE
-#define PPC_IRQ_TRACE (PPC_STD_IRQ_LAST+1) /*0x02000-Run/Trace Exception*/
-#define PPC_IRQ_LAST PPC_IRQ_TRACE
-
-#elif defined(ppc602)
-#define PPC_IRQ_LAST (PPC_STD_IRQ_LAST)
-
-#elif defined(ppc603) || defined(ppc603e)
-#define PPC_IRQ_TRANS_MISS (PPC_STD_IRQ_LAST+1) /*0x1000-Ins Translation Miss*/
-#define PPC_IRQ_DATA_LOAD (PPC_STD_IRQ_LAST+2) /*0x1100-Data Load Trans Miss*/
-#define PPC_IRQ_DATA_STORE (PPC_STD_IRQ_LAST+3) /*0x1200-Data Store Miss */
-#define PPC_IRQ_ADDR_BRK (PPC_STD_IRQ_LAST+4) /*0x1300-Instruction Bkpoint */
-#define PPC_IRQ_SYS_MGT (PPC_STD_IRQ_LAST+5) /*0x1400-System Management */
-#define PPC_IRQ_LAST PPC_IRQ_SYS_MGT
-
-#elif defined(mpc604)
-#define PPC_IRQ_ADDR_BRK (PPC_STD_IRQ_LAST+1) /*0x1300- Inst. addr break */
-#define PPC_IRQ_SYS_MGT (PPC_STD_IRQ_LAST+2) /*0x1400- System Management */
-#define PPC_IRQ_LAST PPC_IRQ_SYS_MGT
-
-#elif defined(mpc860) || defined(mpc821)
-#define PPC_IRQ_EMULATE (PPC_STD_IRQ_LAST+1) /*0x1000-Software emulation */
-#define PPC_IRQ_INST_MISS (PPC_STD_IRQ_LAST+2) /*0x1100-Instruction TLB miss*/
-#define PPC_IRQ_DATA_MISS (PPC_STD_IRQ_LAST+3) /*0x1200-Data TLB miss */
-#define PPC_IRQ_INST_ERR (PPC_STD_IRQ_LAST+4) /*0x1300-Instruction TLB err */
-#define PPC_IRQ_DATA_ERR (PPC_STD_IRQ_LAST+5) /*0x1400-Data TLB error */
-#define PPC_IRQ_DATA_BPNT (PPC_STD_IRQ_LAST+6) /*0x1C00-Data breakpoint */
-#define PPC_IRQ_INST_BPNT (PPC_STD_IRQ_LAST+7) /*0x1D00-Inst breakpoint */
-#define PPC_IRQ_IO_BPNT (PPC_STD_IRQ_LAST+8) /*0x1E00-Peripheral breakpnt */
-#define PPC_IRQ_DEV_PORT (PPC_STD_IRQ_LAST+9) /*0x1F00-Development port */
-#define PPC_IRQ_IRQ0 (PPC_STD_IRQ_LAST + 10)
-#define PPC_IRQ_LVL0 (PPC_STD_IRQ_LAST + 11)
-#define PPC_IRQ_IRQ1 (PPC_STD_IRQ_LAST + 12)
-#define PPC_IRQ_LVL1 (PPC_STD_IRQ_LAST + 13)
-#define PPC_IRQ_IRQ2 (PPC_STD_IRQ_LAST + 14)
-#define PPC_IRQ_LVL2 (PPC_STD_IRQ_LAST + 15)
-#define PPC_IRQ_IRQ3 (PPC_STD_IRQ_LAST + 16)
-#define PPC_IRQ_LVL3 (PPC_STD_IRQ_LAST + 17)
-#define PPC_IRQ_IRQ4 (PPC_STD_IRQ_LAST + 18)
-#define PPC_IRQ_LVL4 (PPC_STD_IRQ_LAST + 19)
-#define PPC_IRQ_IRQ5 (PPC_STD_IRQ_LAST + 20)
-#define PPC_IRQ_LVL5 (PPC_STD_IRQ_LAST + 21)
-#define PPC_IRQ_IRQ6 (PPC_STD_IRQ_LAST + 22)
-#define PPC_IRQ_LVL6 (PPC_STD_IRQ_LAST + 23)
-#define PPC_IRQ_IRQ7 (PPC_STD_IRQ_LAST + 24)
-#define PPC_IRQ_LVL7 (PPC_STD_IRQ_LAST + 25)
-#define PPC_IRQ_CPM_ERROR (PPC_STD_IRQ_LAST + 26)
-#define PPC_IRQ_CPM_PC4 (PPC_STD_IRQ_LAST + 27)
-#define PPC_IRQ_CPM_PC5 (PPC_STD_IRQ_LAST + 28)
-#define PPC_IRQ_CPM_SMC2 (PPC_STD_IRQ_LAST + 29)
-#define PPC_IRQ_CPM_SMC1 (PPC_STD_IRQ_LAST + 30)
-#define PPC_IRQ_CPM_SPI (PPC_STD_IRQ_LAST + 31)
-#define PPC_IRQ_CPM_PC6 (PPC_STD_IRQ_LAST + 32)
-#define PPC_IRQ_CPM_TIMER4 (PPC_STD_IRQ_LAST + 33)
-#define PPC_IRQ_CPM_RESERVED_8 (PPC_STD_IRQ_LAST + 34)
-#define PPC_IRQ_CPM_PC7 (PPC_STD_IRQ_LAST + 35)
-#define PPC_IRQ_CPM_PC8 (PPC_STD_IRQ_LAST + 36)
-#define PPC_IRQ_CPM_PC9 (PPC_STD_IRQ_LAST + 37)
-#define PPC_IRQ_CPM_TIMER3 (PPC_STD_IRQ_LAST + 38)
-#define PPC_IRQ_CPM_RESERVED_D (PPC_STD_IRQ_LAST + 39)
-#define PPC_IRQ_CPM_PC10 (PPC_STD_IRQ_LAST + 40)
-#define PPC_IRQ_CPM_PC11 (PPC_STD_IRQ_LAST + 41)
-#define PPC_IRQ_CPM_I2C (PPC_STD_IRQ_LAST + 42)
-#define PPC_IRQ_CPM_RISC_TIMER (PPC_STD_IRQ_LAST + 43)
-#define PPC_IRQ_CPM_TIMER2 (PPC_STD_IRQ_LAST + 44)
-#define PPC_IRQ_CPM_RESERVED_13 (PPC_STD_IRQ_LAST + 45)
-#define PPC_IRQ_CPM_IDMA2 (PPC_STD_IRQ_LAST + 46)
-#define PPC_IRQ_CPM_IDMA1 (PPC_STD_IRQ_LAST + 47)
-#define PPC_IRQ_CPM_SDMA_ERROR (PPC_STD_IRQ_LAST + 48)
-#define PPC_IRQ_CPM_PC12 (PPC_STD_IRQ_LAST + 49)
-#define PPC_IRQ_CPM_PC13 (PPC_STD_IRQ_LAST + 50)
-#define PPC_IRQ_CPM_TIMER1 (PPC_STD_IRQ_LAST + 51)
-#define PPC_IRQ_CPM_PC14 (PPC_STD_IRQ_LAST + 52)
-#define PPC_IRQ_CPM_SCC4 (PPC_STD_IRQ_LAST + 53)
-#define PPC_IRQ_CPM_SCC3 (PPC_STD_IRQ_LAST + 54)
-#define PPC_IRQ_CPM_SCC2 (PPC_STD_IRQ_LAST + 55)
-#define PPC_IRQ_CPM_SCC1 (PPC_STD_IRQ_LAST + 56)
-#define PPC_IRQ_CPM_PC15 (PPC_STD_IRQ_LAST + 57)
-
-#define PPC_IRQ_LAST PPC_IRQ_CPM_PC15
-
-#elif defined(mpc8260)
-
-#define PPC_IRQ_INST_MISS (PPC_STD_IRQ_LAST+1) /*0x1000-Instruction TLB miss*/
-#define PPC_IRQ_DATA_MISS (PPC_STD_IRQ_LAST+2) /*0x1100-Data TLB miss */
-#define PPC_IRQ_DATA_L_MISS (PPC_STD_IRQ_LAST+3) /*0x1200-Data TLB load miss */
-#define PPC_IRQ_DATA_S_MISS (PPC_STD_IRQ_LAST+4) /*0x1300-Data TLB store miss */
-#define PPC_IRQ_INST_BPNT (PPC_STD_IRQ_LAST+5) /*0x1400-Inst address breakpoint */
-#define PPC_IRQ_SYS_MGT (PPC_STD_IRQ_LAST+6) /*0x1500-System Management */
-/* 0x1600 - 0x2F00 reserved */
-#define PPC_IRQ_CPM_NONE (PPC_STD_IRQ_LAST + 50)
-#define PPC_IRQ_CPM_I2C (PPC_STD_IRQ_LAST + 51)
-#define PPC_IRQ_CPM_SPI (PPC_STD_IRQ_LAST + 52)
-#define PPC_IRQ_CPM_RISC_TIMER (PPC_STD_IRQ_LAST + 53)
-#define PPC_IRQ_CPM_SMC1 (PPC_STD_IRQ_LAST + 54)
-#define PPC_IRQ_CPM_SMC2 (PPC_STD_IRQ_LAST + 55)
-#define PPC_IRQ_CPM_IDMA1 (PPC_STD_IRQ_LAST + 56)
-#define PPC_IRQ_CPM_IDMA2 (PPC_STD_IRQ_LAST + 57)
-#define PPC_IRQ_CPM_IDMA3 (PPC_STD_IRQ_LAST + 58)
-#define PPC_IRQ_CPM_IDMA4 (PPC_STD_IRQ_LAST + 59)
-#define PPC_IRQ_CPM_SDMA (PPC_STD_IRQ_LAST + 60)
-#define PPC_IRQ_CPM_RES_A (PPC_STD_IRQ_LAST + 61)
-#define PPC_IRQ_CPM_TIMER1 (PPC_STD_IRQ_LAST + 62)
-#define PPC_IRQ_CPM_TIMER2 (PPC_STD_IRQ_LAST + 63)
-#define PPC_IRQ_CPM_TIMER3 (PPC_STD_IRQ_LAST + 64)
-#define PPC_IRQ_CPM_TIMER4 (PPC_STD_IRQ_LAST + 65)
-#define PPC_IRQ_CPM_TMCNT (PPC_STD_IRQ_LAST + 66)
-#define PPC_IRQ_CPM_PIT (PPC_STD_IRQ_LAST + 67)
-#define PPC_IRQ_CPM_RES_B (PPC_STD_IRQ_LAST + 68)
-#define PPC_IRQ_CPM_IRQ1 (PPC_STD_IRQ_LAST + 69)
-#define PPC_IRQ_CPM_IRQ2 (PPC_STD_IRQ_LAST + 70)
-#define PPC_IRQ_CPM_IRQ3 (PPC_STD_IRQ_LAST + 71)
-#define PPC_IRQ_CPM_IRQ4 (PPC_STD_IRQ_LAST + 72)
-#define PPC_IRQ_CPM_IRQ5 (PPC_STD_IRQ_LAST + 73)
-#define PPC_IRQ_CPM_IRQ6 (PPC_STD_IRQ_LAST + 74)
-#define PPC_IRQ_CPM_IRQ7 (PPC_STD_IRQ_LAST + 75)
-#define PPC_IRQ_CPM_RES_C (PPC_STD_IRQ_LAST + 76)
-#define PPC_IRQ_CPM_RES_D (PPC_STD_IRQ_LAST + 77)
-#define PPC_IRQ_CPM_RES_E (PPC_STD_IRQ_LAST + 78)
-#define PPC_IRQ_CPM_RES_F (PPC_STD_IRQ_LAST + 79)
-#define PPC_IRQ_CPM_RES_G (PPC_STD_IRQ_LAST + 80)
-#define PPC_IRQ_CPM_RES_H (PPC_STD_IRQ_LAST + 81)
-#define PPC_IRQ_CPM_FCC1 (PPC_STD_IRQ_LAST + 82)
-#define PPC_IRQ_CPM_FCC2 (PPC_STD_IRQ_LAST + 83)
-#define PPC_IRQ_CPM_FCC3 (PPC_STD_IRQ_LAST + 84)
-#define PPC_IRQ_CPM_RES_I (PPC_STD_IRQ_LAST + 85)
-#define PPC_IRQ_CPM_MCC1 (PPC_STD_IRQ_LAST + 86)
-#define PPC_IRQ_CPM_MCC2 (PPC_STD_IRQ_LAST + 87)
-#define PPC_IRQ_CPM_RES_J (PPC_STD_IRQ_LAST + 88)
-#define PPC_IRQ_CPM_RES_K (PPC_STD_IRQ_LAST + 89)
-#define PPC_IRQ_CPM_SCC1 (PPC_STD_IRQ_LAST + 90)
-#define PPC_IRQ_CPM_SCC2 (PPC_STD_IRQ_LAST + 91)
-#define PPC_IRQ_CPM_SCC3 (PPC_STD_IRQ_LAST + 92)
-#define PPC_IRQ_CPM_SCC4 (PPC_STD_IRQ_LAST + 93)
-#define PPC_IRQ_CPM_RES_L (PPC_STD_IRQ_LAST + 94)
-#define PPC_IRQ_CPM_RES_M (PPC_STD_IRQ_LAST + 95)
-#define PPC_IRQ_CPM_RES_N (PPC_STD_IRQ_LAST + 96)
-#define PPC_IRQ_CPM_RES_O (PPC_STD_IRQ_LAST + 97)
-#define PPC_IRQ_CPM_PC15 (PPC_STD_IRQ_LAST + 98)
-#define PPC_IRQ_CPM_PC14 (PPC_STD_IRQ_LAST + 99)
-#define PPC_IRQ_CPM_PC13 (PPC_STD_IRQ_LAST + 100)
-#define PPC_IRQ_CPM_PC12 (PPC_STD_IRQ_LAST + 101)
-#define PPC_IRQ_CPM_PC11 (PPC_STD_IRQ_LAST + 102)
-#define PPC_IRQ_CPM_PC10 (PPC_STD_IRQ_LAST + 103)
-#define PPC_IRQ_CPM_PC9 (PPC_STD_IRQ_LAST + 104)
-#define PPC_IRQ_CPM_PC8 (PPC_STD_IRQ_LAST + 105)
-#define PPC_IRQ_CPM_PC7 (PPC_STD_IRQ_LAST + 106)
-#define PPC_IRQ_CPM_PC6 (PPC_STD_IRQ_LAST + 107)
-#define PPC_IRQ_CPM_PC5 (PPC_STD_IRQ_LAST + 108)
-#define PPC_IRQ_CPM_PC4 (PPC_STD_IRQ_LAST + 109)
-#define PPC_IRQ_CPM_PC3 (PPC_STD_IRQ_LAST + 110)
-#define PPC_IRQ_CPM_PC2 (PPC_STD_IRQ_LAST + 111)
-#define PPC_IRQ_CPM_PC1 (PPC_STD_IRQ_LAST + 112)
-#define PPC_IRQ_CPM_PC0 (PPC_STD_IRQ_LAST + 113)
-
-#define PPC_IRQ_LAST PPC_IRQ_CPM_PC0
-
-#endif
+#define PPC_INIT_FPSCR 0x000000f8
/*
- * If the maximum number of exception sources is too low,
- * then fix it
+ * Assemblers.
+ * PPC_ASM MUST be defined as one of these.
+ *
+ * PPC_ASM_ELF: ELF assembler. Currently used for all ABIs.
+ *
+ * NOTE: Only PPC_ABI_ELF is currently fully supported.
+ *
+ * Also NOTE: cpukit doesn't need this but asm.h which is defined
+ * in cpukit for consistency with other ports does.
*/
-#if PPC_INTERRUPT_MAX <= PPC_IRQ_LAST
-#undef PPC_INTERRUPT_MAX
-#define PPC_INTERRUPT_MAX ((PPC_IRQ_LAST) + 1)
-#endif
+#define PPC_ASM_ELF 0
/*
- * Initial value for the FPSCR register
+ * Default to the assembler format used by the current GNU tools.
*/
+#define PPC_ASM PPC_ASM_ELF
-#define PPC_INIT_FPSCR 0x000000f8
#ifdef __cplusplus
}