mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 20:56:59 +08:00
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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user