mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Use error_code in mmapper_thread_recover_page_fault
This commit is contained in:
parent
629d8e3a51
commit
cd4e895c04
@ -486,7 +486,7 @@ error_code sys_mmapper_enable_page_fault_notification(ppu_thread& ppu, u32 start
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
CellError mmapper_thread_recover_page_fault(u32 id)
|
||||
error_code mmapper_thread_recover_page_fault(u32 id)
|
||||
{
|
||||
// We can only wake a thread if it is being suspended for a page fault.
|
||||
auto pf_events = fxm::get_always<page_fault_event_entries>();
|
||||
@ -504,5 +504,5 @@ CellError mmapper_thread_recover_page_fault(u32 id)
|
||||
}
|
||||
|
||||
pf_events->cond.notify_all();
|
||||
return CellError(CELL_OK);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ struct page_fault_event_entries
|
||||
// Aux
|
||||
class ppu_thread;
|
||||
|
||||
CellError mmapper_thread_recover_page_fault(u32 id);
|
||||
error_code mmapper_thread_recover_page_fault(u32 id);
|
||||
|
||||
// SysCalls
|
||||
error_code sys_mmapper_allocate_address(ppu_thread&, u64 size, u64 flags, u64 alignment, vm::ptr<u32> alloc_addr);
|
||||
|
@ -434,12 +434,7 @@ error_code sys_ppu_thread_recover_page_fault(u32 thread_id)
|
||||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
if (auto res = mmapper_thread_recover_page_fault(thread_id))
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
return mmapper_thread_recover_page_fault(thread_id);
|
||||
}
|
||||
|
||||
error_code sys_ppu_thread_get_page_fault_context(u32 thread_id, vm::ptr<sys_ppu_thread_icontext_t> ctxt)
|
||||
|
@ -1355,12 +1355,7 @@ error_code sys_spu_thread_recover_page_fault(ppu_thread& ppu, u32 id)
|
||||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
if (auto res = mmapper_thread_recover_page_fault(id))
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
return mmapper_thread_recover_page_fault(id);
|
||||
}
|
||||
|
||||
error_code sys_raw_spu_recover_page_fault(ppu_thread& ppu, u32 id)
|
||||
@ -1376,12 +1371,7 @@ error_code sys_raw_spu_recover_page_fault(ppu_thread& ppu, u32 id)
|
||||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
if (auto res = mmapper_thread_recover_page_fault(id))
|
||||
{
|
||||
return res;
|
||||
}
|
||||
|
||||
return CELL_OK;
|
||||
return mmapper_thread_recover_page_fault(id);
|
||||
}
|
||||
|
||||
error_code sys_raw_spu_create(ppu_thread& ppu, vm::ptr<u32> id, vm::ptr<void> attr)
|
||||
|
Loading…
Reference in New Issue
Block a user