summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-11-15 22:29:22 +0000
committerThomas Martitz <kugel@rockbox.org>2009-11-15 22:29:22 +0000
commit3b402e254a5ecfbf2a740d0e8062dd0ea8cde6ba (patch)
tree2f3356bb9cc65b1e3539b1b64277bd53722b28ca /firmware
parentc12502f249cf9b871b838126783634d431a2de95 (diff)
downloadrockbox-3b402e254a5ecfbf2a740d0e8062dd0ea8cde6ba.tar.gz
rockbox-3b402e254a5ecfbf2a740d0e8062dd0ea8cde6ba.zip
Change "r" back to "i" (i is for immediate, so no syntax error) and reclaim a bit binsize. Live with that those function don't build with -O0 since they rely on inlining.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23641 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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