1
0
Fork 0
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:
Brandon Low 2006-01-19 04:51:52 +00:00
parent 7cc6b3a359
commit b8fc81e6bf

View file

@ -238,7 +238,7 @@ static inline int set_irq_level(int level)
/* 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" "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; return oldlevel;
} }