mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
lv2: stub sys_time syscalls, add error code to sys_ss
This commit is contained in:
parent
b38ce9452d
commit
56692e23f5
5 changed files with 20 additions and 2 deletions
|
@ -268,10 +268,10 @@ const std::array<std::pair<ppu_intrp_func_t, std::string_view>, 1024> g_ppu_sysc
|
||||||
BIND_SYSC(sys_event_port_connect_ipc), //140 (0x08C)
|
BIND_SYSC(sys_event_port_connect_ipc), //140 (0x08C)
|
||||||
BIND_SYSC(sys_timer_usleep), //141 (0x08D)
|
BIND_SYSC(sys_timer_usleep), //141 (0x08D)
|
||||||
BIND_SYSC(sys_timer_sleep), //142 (0x08E)
|
BIND_SYSC(sys_timer_sleep), //142 (0x08E)
|
||||||
NULL_FUNC(sys_time_set_timezone), //143 (0x08F) ROOT
|
BIND_SYSC(sys_time_set_timezone), //143 (0x08F) ROOT
|
||||||
BIND_SYSC(sys_time_get_timezone), //144 (0x090)
|
BIND_SYSC(sys_time_get_timezone), //144 (0x090)
|
||||||
BIND_SYSC(sys_time_get_current_time), //145 (0x091)
|
BIND_SYSC(sys_time_get_current_time), //145 (0x091)
|
||||||
NULL_FUNC(sys_time_get_system_time), //146 (0x092) ROOT
|
BIND_SYSC(sys_time_set_current_time), //146 (0x092) ROOT
|
||||||
BIND_SYSC(sys_time_get_timebase_frequency), //147 (0x093)
|
BIND_SYSC(sys_time_get_timebase_frequency), //147 (0x093)
|
||||||
BIND_SYSC(_sys_rwlock_trywlock), //148 (0x094)
|
BIND_SYSC(_sys_rwlock_trywlock), //148 (0x094)
|
||||||
uns_func, //149 (0x095) UNS
|
uns_func, //149 (0x095) UNS
|
||||||
|
|
|
@ -98,6 +98,7 @@ void fmt_class_string<sys_ss_rng_error>::format(std::string& out, u64 arg)
|
||||||
STR_CASE(SYS_SS_RNG_ERROR_ENOMEM);
|
STR_CASE(SYS_SS_RNG_ERROR_ENOMEM);
|
||||||
STR_CASE(SYS_SS_RNG_ERROR_EAGAIN);
|
STR_CASE(SYS_SS_RNG_ERROR_EAGAIN);
|
||||||
STR_CASE(SYS_SS_RNG_ERROR_EFAULT);
|
STR_CASE(SYS_SS_RNG_ERROR_EFAULT);
|
||||||
|
STR_CASE(SYS_SS_RTC_ERROR_UNK);
|
||||||
}
|
}
|
||||||
|
|
||||||
return unknown;
|
return unknown;
|
||||||
|
|
|
@ -10,6 +10,7 @@ enum sys_ss_rng_error : u32
|
||||||
SYS_SS_RNG_ERROR_ENOMEM = 0x80010501,
|
SYS_SS_RNG_ERROR_ENOMEM = 0x80010501,
|
||||||
SYS_SS_RNG_ERROR_EAGAIN = 0x80010503,
|
SYS_SS_RNG_ERROR_EAGAIN = 0x80010503,
|
||||||
SYS_SS_RNG_ERROR_EFAULT = 0x80010509,
|
SYS_SS_RNG_ERROR_EFAULT = 0x80010509,
|
||||||
|
SYS_SS_RTC_ERROR_UNK = 0x8001050f,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CellSsOpenPSID
|
struct CellSsOpenPSID
|
||||||
|
|
|
@ -218,6 +218,13 @@ u64 get_guest_system_time(u64 time)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
|
error_code sys_time_set_timezone(s32 timezone, s32 summertime)
|
||||||
|
{
|
||||||
|
sys_time.todo("sys_time_set_timezone(timezone=0x%x, summertime=0x%x)", timezone, summertime);
|
||||||
|
|
||||||
|
return CELL_OK;
|
||||||
|
}
|
||||||
|
|
||||||
error_code sys_time_get_timezone(vm::ptr<s32> timezone, vm::ptr<s32> summertime)
|
error_code sys_time_get_timezone(vm::ptr<s32> timezone, vm::ptr<s32> summertime)
|
||||||
{
|
{
|
||||||
sys_time.trace("sys_time_get_timezone(timezone=*0x%x, summertime=*0x%x)", timezone, summertime);
|
sys_time.trace("sys_time_get_timezone(timezone=*0x%x, summertime=*0x%x)", timezone, summertime);
|
||||||
|
@ -374,6 +381,13 @@ error_code sys_time_get_current_time(vm::ptr<s64> sec, vm::ptr<s64> nsec)
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_code sys_time_set_current_time(s64 sec, s64 nsec)
|
||||||
|
{
|
||||||
|
sys_time.todo("sys_time_set_current_time(sec=0x%x, nsec=0x%x)", sec, nsec);
|
||||||
|
|
||||||
|
return CELL_OK;
|
||||||
|
}
|
||||||
|
|
||||||
u64 sys_time_get_timebase_frequency()
|
u64 sys_time_get_timebase_frequency()
|
||||||
{
|
{
|
||||||
sys_time.trace("sys_time_get_timebase_frequency()");
|
sys_time.trace("sys_time_get_timebase_frequency()");
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
|
|
||||||
// SysCalls
|
// SysCalls
|
||||||
|
|
||||||
|
error_code sys_time_set_timezone(s32 timezone, s32 summertime);
|
||||||
error_code sys_time_get_timezone(vm::ptr<s32> timezone, vm::ptr<s32> summertime);
|
error_code sys_time_get_timezone(vm::ptr<s32> timezone, vm::ptr<s32> summertime);
|
||||||
error_code sys_time_get_current_time(vm::ptr<s64> sec, vm::ptr<s64> nsec);
|
error_code sys_time_get_current_time(vm::ptr<s64> sec, vm::ptr<s64> nsec);
|
||||||
|
error_code sys_time_set_current_time(s64 sec, s64 nsec);
|
||||||
u64 sys_time_get_timebase_frequency();
|
u64 sys_time_get_timebase_frequency();
|
||||||
error_code sys_time_get_rtc(vm::ptr<u64> rtc);
|
error_code sys_time_get_rtc(vm::ptr<u64> rtc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue