diff options
Diffstat (limited to 'cpukit/rtems/src/intrbody.c')
-rw-r--r-- | cpukit/rtems/src/intrbody.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/rtems/src/intrbody.c b/cpukit/rtems/src/intrbody.c index 6b37eb26ca..a82dc101e6 100644 --- a/cpukit/rtems/src/intrbody.c +++ b/cpukit/rtems/src/intrbody.c @@ -23,6 +23,8 @@ #include <rtems/score/isr.h> #include <rtems/rtems/intr.h> +#if !defined(RTEMS_SMP) + /* * Undefine all of these is normally a macro and we want a real body in * the library for other language bindings. @@ -30,7 +32,6 @@ #undef rtems_interrupt_disable #undef rtems_interrupt_enable #undef rtems_interrupt_flash -#undef rtems_interrupt_is_in_progress /* * Prototype them to avoid warnings @@ -38,7 +39,6 @@ rtems_interrupt_level rtems_interrupt_disable( void ); void rtems_interrupt_enable( rtems_interrupt_level previous_level ); void rtems_interrupt_flash( rtems_interrupt_level previous_level ); -bool rtems_interrupt_is_in_progress( void ); /* * Now define real bodies @@ -66,6 +66,11 @@ void rtems_interrupt_flash( _ISR_Flash( previous_level ); } +#endif /* RTEMS_SMP */ + +#undef rtems_interrupt_is_in_progress +bool rtems_interrupt_is_in_progress( void ); + bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); |