Disable some common waits inside interrupts.

This commit is contained in:
Unknown W. Brackets 2013-08-27 23:41:10 -07:00
parent 61fae4e920
commit 17a5a42a14
4 changed files with 28 additions and 16 deletions

View file

@ -2130,7 +2130,10 @@ void sceKernelExitDeleteThread(int exitStatus)
u32 sceKernelSuspendDispatchThread()
{
if (!__InterruptsEnabled())
{
DEBUG_LOG(HLE, "sceKernelSuspendDispatchThread(): interrupts disabled");
return SCE_KERNEL_ERROR_CPUDI;
}
u32 oldDispatchEnabled = dispatchEnabled;
dispatchEnabled = false;
@ -2141,7 +2144,10 @@ u32 sceKernelSuspendDispatchThread()
u32 sceKernelResumeDispatchThread(u32 enabled)
{
if (!__InterruptsEnabled())
{
DEBUG_LOG(HLE, "sceKernelResumeDispatchThread(%i): interrupts disabled", enabled);
return SCE_KERNEL_ERROR_CPUDI;
}
u32 oldDispatchEnabled = dispatchEnabled;
dispatchEnabled = enabled != 0;