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:
parent
3794cf3093
commit
6f44a25efa
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue