Fix alarm test by not interrupting when disabled.

vblank was interrupting/rescheduling when interrupts were disabled.
That's bad.
This commit is contained in:
Unknown W. Brackets committed 2013-02-03 13:48:19 -08:00
1 parent c7204797e7
commit 2fa0cf040d
3 files changed
+10 -4

No files matched your search

+5
View File
@@ -386,6 +386,11 @@ void __TriggerRunInterrupts(int type)
{
if ((type & PSP_INTR_HLE) != 0)
hleRunInterrupts();
else if ((type & PSP_INTR_ALWAYS_RESCHED) != 0)
{
if (!__RunOnePendingInterrupt())
__KernelSwitchOffThread("interrupt");
}
else
__RunOnePendingInterrupt();
}