diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-02-09 14:25:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-02-09 14:25:33 +0000 |
commit | 6dae1c2d0bec2337300e553a9fd0c29f4c13d143 (patch) | |
tree | 22881c352befa9f8234e2dfdebec4920733eed7f /c | |
parent | added clear of _ISR_Signals_to_thread_executing (diff) | |
download | rtems-6dae1c2d0bec2337300e553a9fd0c29f4c13d143.tar.bz2 |
added rtems_interrupt_is_in_progress
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/rtems/headers/intr.h | 14 | ||||
-rw-r--r-- | c/src/exec/rtems/include/rtems/rtems/intr.h | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/c/src/exec/rtems/headers/intr.h b/c/src/exec/rtems/headers/intr.h index d826d32bf4..8681ccf9e0 100644 --- a/c/src/exec/rtems/headers/intr.h +++ b/c/src/exec/rtems/headers/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: diff --git a/c/src/exec/rtems/include/rtems/rtems/intr.h b/c/src/exec/rtems/include/rtems/rtems/intr.h index d826d32bf4..8681ccf9e0 100644 --- a/c/src/exec/rtems/include/rtems/rtems/intr.h +++ b/c/src/exec/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: |