sys_ppu_thread_create: read function descriptor immediately and save it

This commit is contained in:
Eladash 2020-04-08 14:26:31 +03:00 committed by Ivan
parent 8c838698af
commit c948c9305c
8 changed files with 39 additions and 15 deletions

View file

@ -137,7 +137,7 @@ error_code sys_ppu_thread_create(ppu_thread& ppu, vm::ptr<u64> thread_id, u32 en
}
// Call the syscall
if (error_code res = _sys_ppu_thread_create(thread_id, vm::make_var(ppu_thread_param_t{ entry, tls_addr + 0x7030 }), arg, 0, prio, stacksize, flags, threadname))
if (error_code res = _sys_ppu_thread_create(thread_id, vm::make_var(ppu_thread_param_t{ vm::cast(entry), tls_addr + 0x7030 }), arg, 0, prio, stacksize, flags, threadname))
{
return res;
}