mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Move currentThread init to a better place.
This commit is contained in:
parent
e8e9f7f9d8
commit
fd1c686edf
1 changed files with 2 additions and 1 deletions
|
@ -446,7 +446,7 @@ int g_inCbCount = 0;
|
||||||
// Normally, the same as currentThread. In an interrupt, remembers the callback's thread id.
|
// Normally, the same as currentThread. In an interrupt, remembers the callback's thread id.
|
||||||
SceUID currentCallbackThreadID = 0;
|
SceUID currentCallbackThreadID = 0;
|
||||||
int readyCallbacksCount = 0;
|
int readyCallbacksCount = 0;
|
||||||
SceUID currentThread = 0;
|
SceUID currentThread;
|
||||||
u32 idleThreadHackAddr;
|
u32 idleThreadHackAddr;
|
||||||
u32 threadReturnHackAddr;
|
u32 threadReturnHackAddr;
|
||||||
u32 cbReturnHackAddr;
|
u32 cbReturnHackAddr;
|
||||||
|
@ -556,6 +556,7 @@ void __KernelThreadingInit()
|
||||||
|
|
||||||
dispatchEnabled = true;
|
dispatchEnabled = true;
|
||||||
|
|
||||||
|
currentThread = 0;
|
||||||
g_inCbCount = 0;
|
g_inCbCount = 0;
|
||||||
currentCallbackThreadID = 0;
|
currentCallbackThreadID = 0;
|
||||||
readyCallbacksCount = 0;
|
readyCallbacksCount = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue