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:
parent
0af3c50924
commit
a3637a1cad
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue