Disable some common waits inside interrupts.
This commit is contained in:
parent
61fae4e920
commit
17a5a42a14
4 changed files with 28 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue