Move currentThread init to a better place.

This commit is contained in:
Unknown W. Brackets 2013-02-10 07:49:08 -08:00
parent e8e9f7f9d8
commit fd1c686edf

View file

@ -446,7 +446,7 @@ int g_inCbCount = 0;
// Normally, the same as currentThread. In an interrupt, remembers the callback's thread id.
SceUID currentCallbackThreadID = 0;
int readyCallbacksCount = 0;
SceUID currentThread = 0;
SceUID currentThread;
u32 idleThreadHackAddr;
u32 threadReturnHackAddr;
u32 cbReturnHackAddr;
@ -556,6 +556,7 @@ void __KernelThreadingInit()
dispatchEnabled = true;
currentThread = 0;
g_inCbCount = 0;
currentCallbackThreadID = 0;
readyCallbacksCount = 0;