diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-11-15 22:29:22 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-11-15 22:29:22 +0000 |
commit | 3b402e254a5ecfbf2a740d0e8062dd0ea8cde6ba (patch) | |
tree | 2f3356bb9cc65b1e3539b1b64277bd53722b28ca /firmware | |
parent | c12502f249cf9b871b838126783634d431a2de95 (diff) |
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.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 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) "mrs %0, cpsr \n" "bic %0, %0, %1 \n" "msr cpsr_c, %0 \n" - : "=&r"(tmp) : "r"(mask)); + : "=&r"(tmp) : "i"(mask)); } static inline void disable_interrupt(int mask) @@ -254,7 +254,7 @@ static inline void disable_interrupt(int mask) "mrs %0, cpsr \n" "orr %0, %0, %1 \n" "msr cpsr_c, %0 \n" - : "=&r"(tmp) : "r"(mask)); + : "=&r"(tmp) : "i"(mask)); } static inline int disable_interrupt_save(int mask) @@ -266,7 +266,7 @@ static inline int disable_interrupt_save(int mask) "orr %0, %1, %2 \n" "msr cpsr_c, %0 \n" : "=&r"(tmp), "=&r"(cpsr) - : "r"(mask)); + : "i"(mask)); return cpsr; } |