Implementation of the kernels irq interface. More...
Implementation of the kernels irq interface.
Definition in file irq_arch.h.
Go to the source code of this file.
#define | CPU_CSR_MCAUSE_CAUSE_MSK (0x0fffu) |
Bit mask for the MCAUSE register. | |
volatile int | riscv_in_isr |
static unsigned int | irq_enable (void) |
Enable all maskable interrupts. | |
static unsigned int | irq_disable (void) |
Disable all maskable interrupts. | |
static void | irq_restore (unsigned int state) |
Restore the state of the IRQ flags. | |
static bool | irq_is_in (void) |
See if the current context is inside an ISR. | |
static bool | irq_is_enabled (void) |
#define CPU_CSR_MCAUSE_CAUSE_MSK (0x0fffu) |
Bit mask for the MCAUSE register.
Definition at line 38 of file irq_arch.h.
|
inlinestatic |
Disable all maskable interrupts.
Definition at line 62 of file irq_arch.h.
|
inlinestatic |
Enable all maskable interrupts.
Definition at line 45 of file irq_arch.h.
|
inlinestatic |
Definition at line 100 of file irq_arch.h.
|
inlinestatic |
See if the current context is inside an ISR.
Definition at line 95 of file irq_arch.h.
|
inlinestatic |
Restore the state of the IRQ flags.
Definition at line 80 of file irq_arch.h.