From 826fa6b169d550edbda5f59430df13d33ed0a24f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 May 2012 18:29:56 -0500 Subject: Score ISR - Minimize Capabilities When Not Simple Vectored In particular CPU_INTERRUPT_NUMBER_OF_VECTORS and CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER are only used on Simple Vectored Architectures, so do not depend on them being defined. This disables as much as possible that is specific to the Simple Vectored Model and not expected to be used on architectures which use the Programmable Interrupt Controller model for interrupt handler vectoring. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpukit/score/cpu/powerpc/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 9a4d944de6..bd05247534 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -3,7 +3,7 @@ */ /* - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * COPYRIGHT (c) 1995 i-cubed ltd. @@ -624,11 +624,13 @@ SCORE_EXTERN struct { /* * This defines the number of entries in the ISR_Vector_table managed * by RTEMS. + * + * NOTE: CPU_INTERRUPT_NUMBER_OF_VECTORS and + * CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER are only used on + * Simple Vectored Architectures and thus are not defined + * for this architecture. */ -#define CPU_INTERRUPT_NUMBER_OF_VECTORS (0) -#define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER (UINT32_MAX) - /* * This is defined if the port has a special way to report the ISR nesting * level. Most ports maintain the variable _ISR_Nest_level. Note that -- cgit v1.2.3