Implemented syscall _sys_process_exit

This commit is contained in:
Nekotekina 2017-09-16 20:43:02 +03:00
parent e789b969b0
commit b9b71ccbc1
6 changed files with 48 additions and 28 deletions

View file

@ -232,3 +232,23 @@ s32 sys_process_detach_child(u64 unk)
sys_process.todo("sys_process_detach_child(unk=0x%llx)", unk);
return CELL_OK;
}
s32 _sys_process_exit(ppu_thread& ppu, s32 status, u32 arg2, u32 arg3)
{
vm::temporary_unlock(ppu);
sys_process.warning("_sys_process_exit(status=%d, arg2=0x%x, arg3=0x%x)", status);
Emu.CallAfter([]()
{
sys_process.success("Process finished");
Emu.Stop();
});
thread_ctrl::eternalize();
}
s32 _sys_process_exit2(ppu_thread& ppu, s32 status, u32 arg2, u32 arg3, u32 arg4)
{
fmt::throw_exception("_sys_process_exit2");
}