From 3b402e254a5ecfbf2a740d0e8062dd0ea8cde6ba Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 15 Nov 2009 22:29:22 +0000 Subject: 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 --- firmware/target/arm/system-arm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/system-arm.h') 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; } -- cgit v1.2.3