summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-01-19 04:51:52 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-01-19 04:51:52 +0000
commitb8fc81e6bf8cfaec6caae2f6544be3057e546d7c (patch)
tree15f63c0aeb819de09be3cc10bb17c69c8e6b9d2e /firmware
parent7cc6b3a3596c64d7fb5aeff0f6a63783e929d510 (diff)
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 50cbaee686..45119118f7 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -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;
}