summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/system-arm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/system-arm.h b/firmware/target/arm/system-arm.h
index 96afba4568..0608f50a02 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) : "r"(mask)); 246 : "=&r"(tmp) : "i"(mask));
247} 247}
248 248
249static inline void disable_interrupt(int mask) 249static 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) : "r"(mask)); 257 : "=&r"(tmp) : "i"(mask));
258} 258}
259 259
260static inline int disable_interrupt_save(int mask) 260static 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 : "r"(mask)); 269 : "i"(mask));
270 return cpsr; 270 return cpsr;
271} 271}
272 272