summaryrefslogtreecommitdiffstats
path: root/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'asm.h')
-rw-r--r--asm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/asm.h b/asm.h
new file mode 100644
index 0000000..f6489e6
--- /dev/null
+++ b/asm.h
@@ -0,0 +1,7 @@
+#ifndef ASM_H
+#define ASM_H
+
+#define CLI() __asm__ volatile ("cpsid i")
+#define STI() __asm__ volatile ("cpsie i")
+
+#endif /* ASM_H */