mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 14:00:27 +02:00
Set the low mystery bits of the thread attr.
Tests on PSP show this, and I can't find a way to not have them set. But I don't really know what they mean. Anyway, since you can refer the status, you can see them, may improve compatibility.
This commit is contained in:
1 parent
0af3c50924
commit
a3637a1cad
1 file changed
+2
@@ -1934,6 +1934,8 @@ Thread *__KernelCreateThread(SceUID &id, SceUID moduleId, const char *name, u32
|
||||
t->nt.entrypoint = entryPoint;
|
||||
t->nt.nativeSize = sizeof(t->nt);
|
||||
t->nt.attr = attr;
|
||||
// TODO: I have no idea what this value is but the PSP firmware seems to add it on create.
|
||||
t->nt.attr |= 0xFF;
|
||||
t->nt.initialPriority = t->nt.currentPriority = priority;
|
||||
t->nt.stackSize = stacksize;
|
||||
t->nt.status = THREADSTATUS_DORMANT;
|
||||
|
||||
Reference in new issue
Block a user