irq_arch.h File Reference

Implementation of the kernels irq interface. More...

Detailed Description

Implementation of the kernels irq interface.

Author
Ken Rabold
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file irq_arch.h.

#include <stdint.h>
#include "irq.h"
#include "vendor/riscv_csr.h"
+ Include dependency graph for irq_arch.h:
+ This graph shows which files directly or indirectly include this file:

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)