forked from len0rd/rockbox
Stricter asm constraint is required.
(Prevent breakage with future compilers) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8379 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7cc6b3a359
commit
b8fc81e6bf
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ static inline int set_irq_level(int level)
|
|||
/* Read the old level and set the new one */
|
||||
asm volatile ("move.w %%sr,%0\n"
|
||||
"or.l #0x2000,%1\n"
|
||||
"move.w %1,%%sr\n" : "=r" (oldlevel), "+r" (level) : );
|
||||
"move.w %1,%%sr\n" : "=d" (oldlevel), "+d" (level) : );
|
||||
return oldlevel;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue