This is how it should have been done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13292 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c7f84b6763
commit
0987a6be89
1 changed files with 1 additions and 2 deletions
|
@ -97,10 +97,9 @@ static inline int set_irq_level(int level)
|
|||
asm volatile (
|
||||
"mrs %1, cpsr \n"
|
||||
"bic %0, %1, #0x80 \n"
|
||||
"and %2, %2, #0x80 \n"
|
||||
"orr %0, %0, %2 \n"
|
||||
"msr cpsr_c, %0 \n"
|
||||
: "=&r"(cpsr), "=&r"(oldlevel), "+&r"(level)
|
||||
: "=&r,r"(cpsr), "=&r,r"(oldlevel) : "r,i"(level & 0x80)
|
||||
);
|
||||
return oldlevel;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue