2009-08-06 Chris Johns <chrisj@rtems.org>

* src/rtemsInterrupt.cc: Fixed the code to compile on targets with
        CPU_SIMPLE_VECTORED_INTERRUPTS defined to true.
This commit is contained in:
Chris Johns
2009-08-06 04:00:27 +00:00
parent 945884fe9f
commit b9ff10f310
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
2009-08-06 Chris Johns <chrisj@rtems.org>
* src/rtemsInterrupt.cc: Fixed the code to compile on targets with
CPU_SIMPLE_VECTORED_INTERRUPTS defined to true.
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h,
+8 -2
View File
@@ -75,10 +75,13 @@ const rtems_status_code rtemsInterrupt::isr_catch(const rtems_vector_number vec)
interrupt_table[vec] = this;
vector = vec;
#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
set_status_code(rtems_interrupt_catch(redirector,
vector,
&old_handler));
#else
set_status_code(RTEMS_NOT_DEFINED);
#endif
if (successful())
caught = true;
else
@@ -96,10 +99,13 @@ const rtems_status_code rtemsInterrupt::release(void)
{
if (caught)
{
#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
set_status_code(rtems_interrupt_catch(old_handler,
vector,
&old_handler));
#else
set_status_code(RTEMS_NOT_DEFINED);
#endif
interrupt_table[vector] = old_interrupt;
old_interrupt = 0;
old_handler = 0;