summaryrefslogtreecommitdiffstats
path: root/asm.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2016-10-20 23:43:29 +0100
committerTomasz Kramkowski <tk@the-tk.com>2016-10-20 23:43:29 +0100
commitc3c5f1e5fe27574220c3e94a79048e066cacc121 (patch)
tree445096a0365cc45c959091355852c9b63d8a338a /asm.h
downloadfmk-c3c5f1e5fe27574220c3e94a79048e066cacc121.tar.gz
fmk-c3c5f1e5fe27574220c3e94a79048e066cacc121.tar.xz
fmk-c3c5f1e5fe27574220c3e94a79048e066cacc121.zip
Init commit
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 */