mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
[rpcsx-os] Enable thr_new
Fix uwrite
This commit is contained in:
parent
855b7ab75c
commit
030327cd1d
4 changed files with 29 additions and 22 deletions
|
|
@ -20,8 +20,7 @@ orbis::SysResult orbis::sys_thr_new(Thread *thread, ptr<struct thr_param> param,
|
|||
}
|
||||
|
||||
orbis::SysResult orbis::sys_thr_self(Thread *thread, ptr<slong> id) {
|
||||
uwrite(id, (slong)thread->tid);
|
||||
return {};
|
||||
return uwrite(id, (slong)thread->tid);
|
||||
}
|
||||
|
||||
orbis::SysResult orbis::sys_thr_exit(Thread *thread, ptr<slong> state) {
|
||||
|
|
|
|||
|
|
@ -43,11 +43,11 @@ void orbis::syscall_entry(Thread *thread) {
|
|||
std::abort();
|
||||
}
|
||||
|
||||
error =
|
||||
int(uread(args + regcnt,
|
||||
ptr<void>(readRegister(thread->context, RegisterId::rsp) +
|
||||
sizeof(uint64_t)),
|
||||
(sysent.narg - regcnt) * sizeof(uint64_t)));
|
||||
error = int(
|
||||
ureadRaw(args + regcnt,
|
||||
ptr<void>(readRegister(thread->context, RegisterId::rsp) +
|
||||
sizeof(uint64_t)),
|
||||
(sysent.narg - regcnt) * sizeof(uint64_t)));
|
||||
}
|
||||
|
||||
if (error == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue