From 2b3692d3155bac0e02a968eb0d1f5f108f9dd470 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Aug 2009 15:36:49 +0000 Subject: 2009-08-05 Joel Sherrill * rtems/include/rtems/rtems/intr.h, rtems/src/intrcatch.c: Disable rtems_interrupt_catch on targets which do not use the simple vectored interrupt model. --- cpukit/rtems/include/rtems/rtems/intr.h | 2 ++ cpukit/rtems/src/intrcatch.c | 3 +++ 2 files changed, 5 insertions(+) (limited to 'cpukit/rtems') diff --git a/cpukit/rtems/include/rtems/rtems/intr.h b/cpukit/rtems/include/rtems/rtems/intr.h index f1bb485db2..747c14420f 100644 --- a/cpukit/rtems/include/rtems/rtems/intr.h +++ b/cpukit/rtems/include/rtems/rtems/intr.h @@ -57,6 +57,7 @@ typedef rtems_isr ( *rtems_isr_entry )( rtems_vector_number ); +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) /** * @brief Implementation of the rtems_interrupt_catch directive. * @@ -69,6 +70,7 @@ rtems_status_code rtems_interrupt_catch( rtems_vector_number vector, rtems_isr_entry *old_isr_handler ); +#endif /** * @brief Disables all maskable interrupts and returns the previous level in diff --git a/cpukit/rtems/src/intrcatch.c b/cpukit/rtems/src/intrcatch.c index ae54008d1d..dc3f1d4684 100644 --- a/cpukit/rtems/src/intrcatch.c +++ b/cpukit/rtems/src/intrcatch.c @@ -21,6 +21,8 @@ #include #include +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) + /* rtems_interrupt_catch * * This directive allows a thread to specify what action to take when @@ -56,3 +58,4 @@ rtems_status_code rtems_interrupt_catch( return RTEMS_SUCCESSFUL; } +#endif -- cgit v1.2.3