summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-02-09 14:25:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-02-09 14:25:33 +0000
commit6dae1c2d0bec2337300e553a9fd0c29f4c13d143 (patch)
tree22881c352befa9f8234e2dfdebec4920733eed7f /cpukit
parent8a38f3b1e5cb8f5e8e680e05ffbf7e0eaf54de2d (diff)
downloadrtems-6dae1c2d0bec2337300e553a9fd0c29f4c13d143.tar.bz2
added rtems_interrupt_is_in_progress
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/intr.h14
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: