From 6dae1c2d0bec2337300e553a9fd0c29f4c13d143 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 9 Feb 1996 14:25:33 +0000 Subject: added rtems_interrupt_is_in_progress --- cpukit/rtems/include/rtems/rtems/intr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cpukit') 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 @@ -114,6 +114,20 @@ rtems_status_code rtems_interrupt_catch( #define rtems_interrupt_flash( _isr_cookie ) \ _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 * -- cgit v1.2.3