[rtems commit] rtems: Add rtems_interrupt_lock_interrupt_disable
Sebastian Huber
sebh at rtems.org
Thu May 12 11:35:27 UTC 2016
Module: rtems
Branch: master
Commit: 0727760336bfcb4f66771f1a86ee3bb923d2cfc4
Changeset: http://git.rtems.org/rtems/commit/?id=0727760336bfcb4f66771f1a86ee3bb923d2cfc4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu May 12 11:22:33 2016 +0200
rtems: Add rtems_interrupt_lock_interrupt_disable
Update #2707.
---
cpukit/rtems/include/rtems/rtems/intr.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/cpukit/rtems/include/rtems/rtems/intr.h b/cpukit/rtems/include/rtems/rtems/intr.h
index d084959..f9c601b 100644
--- a/cpukit/rtems/include/rtems/rtems/intr.h
+++ b/cpukit/rtems/include/rtems/rtems/intr.h
@@ -279,6 +279,19 @@ typedef ISR_lock_Context rtems_interrupt_lock_context;
_ISR_lock_Destroy( _lock )
/**
+ * @brief Disables interrupts on the current processor.
+ *
+ * This function can be used in thread and interrupt context.
+ *
+ * @param[in,out] _lock_context The local interrupt lock context for an acquire
+ * and release pair.
+ *
+ * @see rtems_interrupt_lock_acquire_isr().
+ */
+#define rtems_interrupt_lock_interrupt_disable( _lock_context ) \
+ _ISR_lock_ISR_disable( _lock_context )
+
+/**
* @brief Acquires an interrupt lock.
*
* Interrupts will be disabled. On SMP configurations this function acquires
More information about the vc
mailing list