From c424bb544e91c17c59d6076b0071907de74d1a88 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 May 2012 10:07:23 -0500 Subject: librtems++ - Disable Interrupt Class When Not Simple Vectored This class only works on Simple Vectored Architectures. Even worse, it is not guaranteed to compile on a Programmable Interrupt Vector architecture. --- c/src/librtems++/src/rtemsInterrupt.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c/src/librtems++') diff --git a/c/src/librtems++/src/rtemsInterrupt.cc b/c/src/librtems++/src/rtemsInterrupt.cc index 5432cfcd4a..436e362a2f 100644 --- a/c/src/librtems++/src/rtemsInterrupt.cc +++ b/c/src/librtems++/src/rtemsInterrupt.cc @@ -38,6 +38,9 @@ static bool initialised = false; #include +#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) + +typedef void * ISR_Handler void *; rtemsInterrupt::rtemsInterrupt() : vector(0), caught(false), @@ -123,3 +126,4 @@ void rtemsInterrupt::redirector(rtems_vector_number vector) if (interrupt_table[vector]) interrupt_table[vector]->handler(); } +#endif -- cgit v1.2.3