forked from len0rd/rockbox
Save a couple bytes in set_irq_level on Coldfire. Should add up to something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12912 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
465820da22
commit
8f04faef91
1 changed files with 4 additions and 3 deletions
|
@ -72,8 +72,9 @@ static inline int set_irq_level(int level)
|
||||||
int oldlevel;
|
int oldlevel;
|
||||||
/* Read the old level and set the new one */
|
/* Read the old level and set the new one */
|
||||||
asm volatile ("move.w %%sr, %0 \n"
|
asm volatile ("move.w %%sr, %0 \n"
|
||||||
"or.l #0x2000,%1\n"
|
"bset.l #13, %1 \n" /* Keep supervisor state set */
|
||||||
"move.w %1,%%sr\n" : "=d" (oldlevel), "+d" (level) : );
|
"move.w %1, %%sr \n"
|
||||||
|
: "=d"(oldlevel), "+d"(level));
|
||||||
return oldlevel;
|
return oldlevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue