diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-18 19:20:41 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-05-18 19:26:47 +0100 |
commit | 7cc6d5becb964a18b39b2bb882dce536dde0e33b (patch) | |
tree | bbf20419ff4f9ed5597a10e2bfcc02d03348e7da /lib | |
parent | 6852efe4a621a52e82ec5371a4b9fc10cc1bea88 (diff) | |
download | fmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.tar.gz fmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.tar.xz fmk-7cc6d5becb964a18b39b2bb882dce536dde0e33b.zip |
lib/asm.h: remove unnecessary volatile
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asm.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 */ |