Add ability to flag function to clear a bit of stack. See #6374, idea by JPCSP, pointed out by sum2012.

This commit is contained in:
Henrik Rydgard 2015-03-02 01:03:12 +01:00
parent acdd0807f5
commit fd1dcb881f
5 changed files with 28 additions and 10 deletions

View file

@ -2538,6 +2538,14 @@ u32 __KernelGetCurThreadStack()
return 0;
}
u32 __KernelGetCurThreadStackStart()
{
Thread *t = __GetCurrentThread();
if (t)
return t->currentStack.start;
return 0;
}
SceUID sceKernelGetThreadId()
{
VERBOSE_LOG(SCEKERNEL, "%i = sceKernelGetThreadId()", currentThread);