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.
This commit is contained in:
Joel Sherrill
2012-05-09 10:07:23 -05:00
parent 826fa6b169
commit c424bb544e

View File

@@ -38,6 +38,9 @@ static bool initialised = false;
#include <cstdlib> #include <cstdlib>
#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
typedef void * ISR_Handler void *;
rtemsInterrupt::rtemsInterrupt() rtemsInterrupt::rtemsInterrupt()
: vector(0), : vector(0),
caught(false), caught(false),
@@ -123,3 +126,4 @@ void rtemsInterrupt::redirector(rtems_vector_number vector)
if (interrupt_table[vector]) if (interrupt_table[vector])
interrupt_table[vector]->handler(); interrupt_table[vector]->handler();
} }
#endif