forked from len0rd/rockbox
The cli()/sti() functions are not safe. We should have removed them long ago.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4314 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
34455abfe6
commit
f9c780ccc1
6 changed files with 39 additions and 44 deletions
|
|
@ -70,18 +70,6 @@ void yield(void)
|
|||
wake_up_thread();
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Interrupt level setting
|
||||
****************************************************************************/
|
||||
int set_irq_level(int level)
|
||||
{
|
||||
int i;
|
||||
/* Read the old level and set the new one */
|
||||
asm volatile ("stc sr, %0" : "=r" (i));
|
||||
asm volatile ("ldc %0, sr" : : "r" (level << 4));
|
||||
return (i >> 4) & 0x0f;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Queue handling stuff
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue