[rpcsx-os] implement sys_query_memory_protection

This commit is contained in:
DH 2023-08-01 15:40:35 +03:00
parent 5edfdb037c
commit 0c59167c38
8 changed files with 95 additions and 11 deletions

View file

@ -299,7 +299,14 @@ orbis::SysResult orbis::sys_evf_cancel(Thread *thread, sint id, uint64_t value,
}
return {};
}
orbis::SysResult orbis::sys_query_memory_protection(Thread *thread /* TODO */) {
orbis::SysResult
orbis::sys_query_memory_protection(Thread *thread, ptr<void> address,
ptr<MemoryProtection> protection) {
if (auto query_memory_protection =
thread->tproc->ops->query_memory_protection) {
return query_memory_protection(thread, address, protection);
}
return ErrorCode::NOSYS;
}
orbis::SysResult orbis::sys_batch_map(Thread *thread /* TODO */) {