summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-05-18 19:20:41 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-05-18 19:26:47 +0100
commit7cc6d5becb964a18b39b2bb882dce536dde0e33b (patch)
treebbf20419ff4f9ed5597a10e2bfcc02d03348e7da
parent6852efe4a621a52e82ec5371a4b9fc10cc1bea88 (diff)
downloadfmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.tar.gz
fmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.tar.xz
fmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.zip
lib/asm.h: remove unnecessary volatile
-rw-r--r--lib/asm.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/asm.h b/lib/asm.h
index 63310b5..ab4acc8 100644
--- a/lib/asm.h
+++ b/lib/asm.h
@@ -21,9 +21,10 @@
#include <stdint.h>
-#define CLI() __asm__ volatile ("cpsid i")
-#define STI() __asm__ volatile ("cpsie i")
-#define WFI() __asm__ volatile ("wfi")
+#define CLI() __asm__ ("cpsid i")
+#define STI() __asm__ ("cpsie i")
+#define WFI() __asm__ ("wfi")
+#define DMB() __asm__ ("dmb")
static inline uint32_t get_BASEPRI(void)
{
@@ -36,7 +37,7 @@ static inline uint32_t get_BASEPRI(void)
static inline void set_BASEPRI(uint32_t p)
{
- __asm__ volatile ("msr basepri, %0" ::"r"(p));
+ __asm__ ("msr basepri, %0" ::"r"(p));
}
#endif /* FMK_ASM_H */