From 0727760336bfcb4f66771f1a86ee3bb923d2cfc4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 May 2016 11:22:33 +0200 Subject: rtems: Add rtems_interrupt_lock_interrupt_disable Update #2707. --- cpukit/rtems/include/rtems/rtems/intr.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpukit/rtems/include/rtems/rtems/intr.h') 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 @@ -278,6 +278,19 @@ typedef ISR_lock_Context rtems_interrupt_lock_context; #define rtems_interrupt_lock_destroy( _lock ) \ _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. * -- cgit v1.2.3