From 7cc6d5becb964a18b39b2bb882dce536dde0e33b Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 18 May 2017 19:20:41 +0100 Subject: lib/asm.h: remove unnecessary volatile --- lib/asm.h | 9 +++++---- 1 file 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 -#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 */ -- cgit v1.2.3-54-g00ecf