summaryrefslogtreecommitdiffstats
path: root/c/src/librtems++
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-09 10:07:23 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-09 16:56:05 -0500
commitc424bb544e91c17c59d6076b0071907de74d1a88 (patch)
treeca46bbe0871ea58ea36b4ca1d9d1157ae7bb603e /c/src/librtems++
parentScore ISR - Minimize Capabilities When Not Simple Vectored (diff)
downloadrtems-c424bb544e91c17c59d6076b0071907de74d1a88.tar.bz2
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.
Diffstat (limited to 'c/src/librtems++')
-rw-r--r--c/src/librtems++/src/rtemsInterrupt.cc4
1 files changed, 4 insertions, 0 deletions
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 <cstdlib>
+#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