diff options
Diffstat (limited to 'src/cpu/irq.h')
-rw-r--r-- | src/cpu/irq.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cpu/irq.h b/src/cpu/irq.h index 971d0b9..3b8f085 100644 --- a/src/cpu/irq.h +++ b/src/cpu/irq.h @@ -1,16 +1,20 @@ #ifndef CPU_IRQ_H #define CPU_IRQ_H -static inline void enableirq() { +static inline void enableirq(void) +{ asm volatile("cpsie i"); } -static inline void disableirq() { +static inline void disableirq(void) +{ asm volatile("cpsid i"); } -static inline void enablefiq() { +static inline void enablefiq(void) +{ asm volatile("cpsie f"); } -static inline void disablefiq() { +static inline void disablefiq(void) +{ asm volatile("cpsid f"); } |