diff options
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/intr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/intr.h b/cpukit/rtems/include/rtems/rtems/intr.h index d826d32bf4..8681ccf9e0 100644 --- a/cpukit/rtems/include/rtems/rtems/intr.h +++ b/cpukit/rtems/include/rtems/rtems/intr.h @@ -115,6 +115,20 @@ rtems_status_code rtems_interrupt_catch( _ISR_Flash(_isr_cookie) /* + * rtems_interrupt_is_in_progress + * + * DESCRIPTION: + * + * This function returns TRUE if the processor is currently servicing + * and interrupt and FALSE otherwise. A return value of TRUE indicates + * that the caller is an interrupt service routine, NOT a thread. The + * directives available to an interrupt service routine are restricted. + */ + +#define rtems_interrupt_is_in_progress() \ + _ISR_Is_in_progress() + +/* * rtems_interrupt_cause * * DESCRIPTION: |