aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/irq.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-24 15:21:54 -0800
committerChristian Cunningham <cc@localhost>2021-12-24 15:21:54 -0800
commit3a366988a0077474075d8f33ad76514d2fa0c5d6 (patch)
tree7aa293e59bee8308825e029069d395c628d230cd /src/cpu/irq.h
parentd44bf5acb015edaeacc022f423bae4743b868f53 (diff)
Standardized Formatting
Diffstat (limited to 'src/cpu/irq.h')
-rw-r--r--src/cpu/irq.h12
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");
}