diff options
Diffstat (limited to 'firmware/target/arm/system-arm.h')
-rw-r--r-- | firmware/target/arm/system-arm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/system-arm.h b/firmware/target/arm/system-arm.h index 0608f50a02..96afba4568 100644 --- a/firmware/target/arm/system-arm.h +++ b/firmware/target/arm/system-arm.h | |||
@@ -243,7 +243,7 @@ static inline void enable_interrupt(int mask) | |||
243 | "mrs %0, cpsr \n" | 243 | "mrs %0, cpsr \n" |
244 | "bic %0, %0, %1 \n" | 244 | "bic %0, %0, %1 \n" |
245 | "msr cpsr_c, %0 \n" | 245 | "msr cpsr_c, %0 \n" |
246 | : "=&r"(tmp) : "i"(mask)); | 246 | : "=&r"(tmp) : "r"(mask)); |
247 | } | 247 | } |
248 | 248 | ||
249 | static inline void disable_interrupt(int mask) | 249 | static inline void disable_interrupt(int mask) |
@@ -254,7 +254,7 @@ static inline void disable_interrupt(int mask) | |||
254 | "mrs %0, cpsr \n" | 254 | "mrs %0, cpsr \n" |
255 | "orr %0, %0, %1 \n" | 255 | "orr %0, %0, %1 \n" |
256 | "msr cpsr_c, %0 \n" | 256 | "msr cpsr_c, %0 \n" |
257 | : "=&r"(tmp) : "i"(mask)); | 257 | : "=&r"(tmp) : "r"(mask)); |
258 | } | 258 | } |
259 | 259 | ||
260 | static inline int disable_interrupt_save(int mask) | 260 | static inline int disable_interrupt_save(int mask) |
@@ -266,7 +266,7 @@ static inline int disable_interrupt_save(int mask) | |||
266 | "orr %0, %1, %2 \n" | 266 | "orr %0, %1, %2 \n" |
267 | "msr cpsr_c, %0 \n" | 267 | "msr cpsr_c, %0 \n" |
268 | : "=&r"(tmp), "=&r"(cpsr) | 268 | : "=&r"(tmp), "=&r"(cpsr) |
269 | : "i"(mask)); | 269 | : "r"(mask)); |
270 | return cpsr; | 270 | return cpsr; |
271 | } | 271 | } |
272 | 272 | ||