diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-12 11:22:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-12 13:24:42 +0200 |
commit | 0727760336bfcb4f66771f1a86ee3bb923d2cfc4 (patch) | |
tree | c6f760cb6986ec6b60e982a2aa32560b63ef38be /cpukit/rtems/include/rtems/rtems/intr.h | |
parent | score: Avoid Giant lock for scheduler set/get (diff) | |
download | rtems-0727760336bfcb4f66771f1a86ee3bb923d2cfc4.tar.bz2 |
rtems: Add rtems_interrupt_lock_interrupt_disable
Update #2707.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/intr.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/intr.h b/cpukit/rtems/include/rtems/rtems/intr.h index d084959fa9..f9c601b651 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 |