Saving, disabling and restoring the interrupt master enable. More...
Go to the source code of this file.
Macros | |
| #define | IME_SAVE(ime, saved) |
| Saves the original IME value in saved. | |
| #define | IME_DISABLE(ime) |
| Disables interrupts. | |
| #define | IME_RESTORE(ime, saved) |
| Restores IME from saved. | |
| #define | IRQ_LOCK(saved) |
| Disables interrupts and saves IME in saved; IRQ_UNLOCK restores it. | |
| #define | IRQ_UNLOCK(saved) |
| Restores the IME value saved by IRQ_LOCK. | |
Saving, disabling and restoring the interrupt master enable.
Definition in file irqlock.h.
| #define IME_SAVE | ( | ime, | |
| saved ) |
Saves the original IME value in saved.
Definition at line 17 of file irqlock.h.
Referenced by SerialRuntime_Initialize().
| #define IME_DISABLE | ( | ime | ) |
Disables interrupts.
Definition at line 23 of file irqlock.h.
Referenced by SerialRuntime_Initialize().
| #define IME_RESTORE | ( | ime, | |
| saved ) |
| #define IRQ_LOCK | ( | saved | ) |
Disables interrupts and saves IME in saved; IRQ_UNLOCK restores it.
Definition at line 38 of file irqlock.h.
Referenced by BattlePresentation_AppendLinkedActions(), LinkLobby_InitializeSerial(), Runtime_SetIrqHandler(), Scheduler_AddOrUpdateCallback(), Scheduler_FindCallback(), Scheduler_RemoveCallback(), Scheduler_ResumeOverlayTasks(), Scheduler_ResumeTasks(), Scheduler_SetTaskFlags(), Scheduler_SuspendOverlayTasks(), Scheduler_SuspendTasks(), SerialRuntime_BeginReceive(), and SerialRuntime_BeginSend().
| #define IRQ_UNLOCK | ( | saved | ) |
Restores the IME value saved by IRQ_LOCK.
Definition at line 50 of file irqlock.h.
Referenced by BattlePresentation_AppendLinkedActions(), LinkLobby_InitializeSerial(), Runtime_SetIrqHandler(), Scheduler_AddOrUpdateCallback(), Scheduler_FindCallback(), Scheduler_RemoveCallback(), Scheduler_ResumeOverlayTasks(), Scheduler_ResumeTasks(), Scheduler_SetTaskFlags(), Scheduler_SuspendOverlayTasks(), Scheduler_SuspendTasks(), SerialRuntime_BeginReceive(), SerialRuntime_BeginSend(), and SerialRuntime_Initialize().