1
0
Fork 0
forked from len0rd/rockbox

Do core interrupt masking in a less general fashion and save some instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-03-26 01:50:41 +00:00
parent 74d678fdbc
commit af395f4db6
61 changed files with 381 additions and 278 deletions

View file

@ -3415,7 +3415,7 @@ void rec_tick(void)
void rec_tick_enable(bool on)
{
int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL);
int oldlevel = disable_irq_save();
if(on)
{
@ -3431,7 +3431,7 @@ void rec_tick_enable(bool on)
IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */
}
set_irq_level(oldlevel);
restore_irq(oldlevel);
}
void hijack_interrupts(bool on)