1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-09-07 06:25:32 +00:00
parent 3794cf3093
commit 6f44a25efa

View file

@ -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)