summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/isrlevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/score/isrlevel.h')
-rw-r--r--cpukit/include/rtems/score/isrlevel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/isrlevel.h b/cpukit/include/rtems/score/isrlevel.h
index 3981f2c688..d578a32c48 100644
--- a/cpukit/include/rtems/score/isrlevel.h
+++ b/cpukit/include/rtems/score/isrlevel.h
@@ -144,6 +144,17 @@ typedef uint32_t ISR_Level;
RTEMS_COMPILER_MEMORY_BARRIER(); \
} while (0)
+/**
+ * @brief Checks if an ISR in progress.
+ *
+ * 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.
+ *
+ * @return true Returns true, if called from within an ISR, otherwise false.
+ */
+bool _ISR_Is_in_progress( void );
+
/** @} */
#ifdef __cplusplus