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/inline/rtems/score/isr.inl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/inline') diff --git a/cpukit/score/inline/rtems/score/isr.inl b/cpukit/score/inline/rtems/score/isr.inl index 605dfeeab5..a4e7866959 100644 --- a/cpukit/score/inline/rtems/score/isr.inl +++ b/cpukit/score/inline/rtems/score/isr.inl @@ -6,7 +6,7 @@ */ /* - * COPYRIGHT (c) 1989-2004. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -28,6 +28,7 @@ * @{ */ +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) /** * This function returns true if the vector is a valid vector number * for this processor and false otherwise. @@ -51,6 +52,7 @@ RTEMS_INLINE_ROUTINE bool _ISR_Is_valid_user_handler ( { return (handler != NULL); } +#endif /**@}*/ -- cgit v1.2.3