From 6f44a25efa8ebef6128bf56f718c643ba3ad5761 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 7 Sep 2005 06:25:32 +0000 Subject: coldfire_set_macsr(): (1) The argument isn't necessarily constant. (2) Let the compiler choose whether to use a register or an immediate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7491 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/export/system.h') diff --git a/firmware/export/system.h b/firmware/export/system.h index 07b7094615..1fc9b09632 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -129,9 +129,9 @@ enum { #define EMAC_FRACTIONAL 0x20 #define EMAC_SATURATE 0x80 -static inline void coldfire_set_macsr(const unsigned long flags) +static inline void coldfire_set_macsr(unsigned long flags) { - asm volatile ("move.l %0, %%macsr" : : "r" (flags)); + asm volatile ("move.l %0, %%macsr" : : "i,r" (flags)); } static inline unsigned long coldfire_get_macsr(void) -- cgit v1.2.3