mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
cpu_init removed
This commit is contained in:
parent
949200cd3e
commit
5e0489dcc0
10 changed files with 34 additions and 52 deletions
|
|
@ -93,12 +93,9 @@ arm_error_code sceKernelCreateThread(vm::cptr<char> pName, vm::ptr<SceKernelThre
|
|||
sceLibKernel.warning("sceKernelCreateThread(pName=%s, entry=*0x%x, initPriority=%d, stackSize=0x%x, attr=0x%x, cpuAffinityMask=0x%x, pOptParam=*0x%x)",
|
||||
pName, entry, initPriority, stackSize, attr, cpuAffinityMask, pOptParam);
|
||||
|
||||
const auto thread = idm::make_ptr<ARMv7Thread>(pName.get_ptr());
|
||||
const auto thread = idm::make_ptr<ARMv7Thread>(pName.get_ptr(), initPriority, stackSize);
|
||||
|
||||
thread->PC = entry.addr();
|
||||
thread->prio = initPriority;
|
||||
thread->stack_size = stackSize;
|
||||
thread->cpu_init();
|
||||
thread->write_pc(entry.addr(), 0);
|
||||
thread->TLS = fxm::get<arm_tls_manager>()->alloc();
|
||||
|
||||
return NOT_AN_ERROR(thread->id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue