mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-03-03 08:10:03 +00:00
[orbis-kernel] Fixup sys_dmem_container
This commit is contained in:
parent
a96269938e
commit
005add7e97
@ -674,7 +674,7 @@ SysResult sys_obs_eport_trigger(Thread *thread /* TODO */);
|
||||
SysResult sys_obs_eport_open(Thread *thread /* TODO */);
|
||||
SysResult sys_obs_eport_close(Thread *thread /* TODO */);
|
||||
SysResult sys_is_in_sandbox(Thread *thread /* TODO */);
|
||||
SysResult sys_dmem_container(Thread *thread);
|
||||
SysResult sys_dmem_container(Thread *thread, uint id);
|
||||
SysResult sys_get_authinfo(Thread *thread, pid_t pid, ptr<void> info);
|
||||
SysResult sys_mname(Thread *thread, uint64_t address, uint64_t length,
|
||||
ptr<const char[32]> name);
|
||||
|
@ -578,8 +578,11 @@ orbis::SysResult orbis::sys_is_in_sandbox(Thread *thread /* TODO */) {
|
||||
std::printf("sys_is_in_sandbox() -> 0\n");
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_dmem_container(Thread *thread) {
|
||||
orbis::SysResult orbis::sys_dmem_container(Thread *thread, uint id) {
|
||||
ORBIS_LOG_NOTICE(__FUNCTION__, id);
|
||||
thread->retval[0] = 1; // returns default direct memory device
|
||||
if (id + 1)
|
||||
return ErrorCode::PERM;
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_get_authinfo(Thread *thread, pid_t pid,
|
||||
@ -718,6 +721,7 @@ orbis::SysResult orbis::sys_dynlib_get_proc_param(Thread *thread,
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_dynlib_process_needed_and_relocate(Thread *thread) {
|
||||
ORBIS_LOG_NOTICE(__FUNCTION__);
|
||||
if (auto processNeeded = thread->tproc->ops->processNeeded) {
|
||||
auto result = processNeeded(thread);
|
||||
|
||||
@ -741,6 +745,7 @@ orbis::SysResult orbis::sys_dynlib_process_needed_and_relocate(Thread *thread) {
|
||||
}
|
||||
}
|
||||
|
||||
ORBIS_LOG_WARNING(__FUNCTION__);
|
||||
return {};
|
||||
}
|
||||
orbis::SysResult orbis::sys_sandbox_path(Thread *thread /* TODO */) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user