[rtems commit] librtems++ - Disable Interrupt Class When Not Simple Vectored

Joel Sherrill joel at rtems.org
Wed May 9 21:55:53 UTC 2012


Module:    rtems
Branch:    master
Commit:    c424bb544e91c17c59d6076b0071907de74d1a88
Changeset: http://git.rtems.org/rtems/commit/?id=c424bb544e91c17c59d6076b0071907de74d1a88

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed May  9 10:07:23 2012 -0500

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 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/c/src/librtems++/src/rtemsInterrupt.cc b/c/src/librtems++/src/rtemsInterrupt.cc
index 5432cfc..436e362 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




More information about the vc mailing list