mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Disable some common waits inside interrupts.
This commit is contained in:
1 parent
61fae4e920
commit
17a5a42a14
4 files changed
+28
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user