sys_ppu_thread_exit fix

This commit is contained in:
Nekotekina 2014-07-20 21:05:48 +04:00
parent 1f46098b23
commit 41495e5d2a
2 changed files with 17 additions and 4 deletions

View File

@ -10,12 +10,10 @@
extern Module *sysPrxForUser; extern Module *sysPrxForUser;
static const u32 PPU_THREAD_ID_INVALID = 0xFFFFFFFFU; static const u32 PPU_THREAD_ID_INVALID = 0xFFFFFFFFU/*UUUUUUUUUUuuuuuuuuuu~~~~~~~~*/;
void sys_ppu_thread_exit(u64 errorcode) void ppu_thread_exit(u64 errorcode)
{ {
sysPrxForUser->Log("sys_ppu_thread_exit(0x%llx)", errorcode);
PPUThread& thr = GetCurrentPPUThread(); PPUThread& thr = GetCurrentPPUThread();
u32 tid = thr.GetId(); u32 tid = thr.GetId();
@ -29,6 +27,20 @@ void sys_ppu_thread_exit(u64 errorcode)
thr.Stop(); thr.Stop();
} }
void sys_ppu_thread_exit(u64 errorcode)
{
sysPrxForUser->Log("sys_ppu_thread_exit(0x%llx)", errorcode);
ppu_thread_exit(errorcode);
}
void sys_internal_ppu_thread_exit(u64 errorcode)
{
sysPrxForUser->Log("sys_internal_ppu_thread_exit(0x%llx)", errorcode);
ppu_thread_exit(errorcode);
}
s32 sys_ppu_thread_yield() s32 sys_ppu_thread_yield()
{ {
sysPrxForUser->Log("sys_ppu_thread_yield()"); sysPrxForUser->Log("sys_ppu_thread_yield()");

View File

@ -14,6 +14,7 @@ enum ppu_thread_flags : u64
// SysCalls // SysCalls
void sys_ppu_thread_exit(u64 errorcode); void sys_ppu_thread_exit(u64 errorcode);
void sys_internal_ppu_thread_exit(u64 errorcode);
s32 sys_ppu_thread_yield(); s32 sys_ppu_thread_yield();
s32 sys_ppu_thread_join(u64 thread_id, mem64_t vptr); s32 sys_ppu_thread_join(u64 thread_id, mem64_t vptr);
s32 sys_ppu_thread_detach(u64 thread_id); s32 sys_ppu_thread_detach(u64 thread_id);