diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-09-07 06:25:32 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-09-07 06:25:32 +0000 |
commit | 6f44a25efa8ebef6128bf56f718c643ba3ad5761 (patch) | |
tree | 10512d1dc80badd881b9257175d66c1521eb1329 /firmware/export/system.h | |
parent | 3794cf3093058bf94098a0f6db62b802dcbd012c (diff) |
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
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r-- | firmware/export/system.h | 4 |
1 files changed, 2 insertions, 2 deletions
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) |