mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-11 13:48:48 -04:00
svc: Implement svcGetInfo command 0xF0000002
This retrieves:
if (curr_thread == handle_thread) {
result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks);
} else if (curr_thread == handle_thread && sub_id == current_core_index) {
result = hardware_tick_count - last_context_switch_ticks;
}
This commit is contained in:
@@ -53,6 +53,7 @@ enum class GetInfoType : u64 {
|
||||
PrivilegedProcessId = 19,
|
||||
// 5.0.0+
|
||||
UserExceptionContextAddr = 20,
|
||||
ThreadTickCount = 0xF0000002,
|
||||
};
|
||||
|
||||
void CallSVC(u32 immediate);
|
||||
|
||||
Reference in New Issue
Block a user