#include <nitro/os.h>
OSIntrMode OS_DisableInterrupts_IrqAndFiq( void );
None.
Returns a value that indicates the state before this function was called.
The return value type is OSIntrMode
(a u32
typedef), but the return value is the logical sum of the OSIntrMode_Irq
and OSIntrMode_Fiq
enumerated types.
The OSIntrMode_Irq
enumerated type:
Value | Previous state |
---|---|
OS_INTRMODE_IRQ_DISABLE | IRQ Disable (prohibited) |
OS_INTRMODE_IRQ_ENABLE | IRQ Enable (permitted) |
The OSIntrMode_Fiq
enumerated type:
Value | Previous state |
---|---|
OS_INTRMODE_FIQ_DISABLE | FIQ Disable (prohibited) |
OS_INTRMODE_FIQ_ENABLE | FIQ Enable (permitted) |
This function disables IRQ and FIQ interrupts.
The master enable flag for all interrupts (the Interrupt Master Enable Flag) is what is disabled here. If IRQs are disabled with this function, no interrupts will occur even if IRQ interrupt causes are individually set to enable.
The return value indicates the state prior to calling the function.
The CPSR register (current program status register) IRQ and FIQ interrupt control bit are set (the set is disabled).
OS_EnableInterrupts_IrqAndFiq
OS_RestoreInterrupts_IrqAndFiq
OS_DisableInterrupts
2005/03/08 Standardized the Japanese word for "interrupt".
2004/03/04 Moved from OS_DisableInterrupts
.
CONFIDENTIAL