sceKernelStartThread(): skip argPtr for 0 args.

This makes threads/semaphores pass, so adding to passing list.
Depends on an update to pspautotests.
This commit is contained in:
Unknown W. Brackets 2012-11-12 08:16:16 -08:00
parent 5944981d9b
commit d1fd16ecba
3 changed files with 3 additions and 3 deletions

View File

@ -859,7 +859,7 @@ u32 sceKernelStartThread()
startThread->nt.status = THREADSTATUS_READY;
u32 sp = startThread->context.r[MIPS_REG_SP];
if (argBlockPtr)
if (argBlockPtr && argSize > 0)
{
startThread->context.r[MIPS_REG_A0] = argSize;
startThread->context.r[MIPS_REG_A1] = sp;

@ -1 +1 @@
Subproject commit 3024341543e8f6a338d793bbc8701ea55e2d5c99
Subproject commit e6dfb3f2c2ad71475aaad2d7c6807e91b64e5ab1

View File

@ -31,6 +31,7 @@ tests_good = [
"string/string",
"gpu/callbacks/ge_callbacks",
"threads/mbx/mbx",
"threads/semaphores/semaphores",
"power/power",
"rtc/rtc",
"umd/callbacks/umd",
@ -55,7 +56,6 @@ tests_good = [
"threads/msgpipe/msgpipe",
"threads/mutex/mutex",
"threads/scheduling/scheduling",
"threads/semaphores/semaphores",
"threads/threads/threads",
"threads/vpl/vpl",
"threads/vtimers/vtimers",