mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Don't suspend/resume dispatch while interrupts off.
This commit is contained in:
1 parent
0595e5099e
commit
2367c17735
1 file changed
+6
@@ -1751,6 +1751,9 @@ void sceKernelExitDeleteThread()
|
||||
|
||||
u32 sceKernelSuspendDispatchThread()
|
||||
{
|
||||
if (!__InterruptsEnabled())
|
||||
return SCE_KERNEL_ERROR_CPUDI;
|
||||
|
||||
u32 oldDispatchEnabled = dispatchEnabled;
|
||||
dispatchEnabled = false;
|
||||
DEBUG_LOG(HLE, "%i=sceKernelSuspendDispatchThread()", oldDispatchEnabled);
|
||||
@@ -1759,6 +1762,9 @@ u32 sceKernelSuspendDispatchThread()
|
||||
|
||||
u32 sceKernelResumeDispatchThread(u32 enabled)
|
||||
{
|
||||
if (!__InterruptsEnabled())
|
||||
return SCE_KERNEL_ERROR_CPUDI;
|
||||
|
||||
u32 oldDispatchEnabled = dispatchEnabled;
|
||||
dispatchEnabled = enabled != 0;
|
||||
DEBUG_LOG(HLE, "sceKernelResumeDispatchThread(%i) - from %i", enabled, oldDispatchEnabled);
|
||||
|
||||
Reference in new issue
Block a user