mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-04 08:06:20 +00:00
kernel: Refactor thread functions
This commit is contained in:
parent
8860a0bbd5
commit
c878e69270
26 changed files with 2912 additions and 2248 deletions
|
@ -148,6 +148,13 @@ public:
|
|||
VAddr SystemReservedVirtualBase() noexcept {
|
||||
return impl.SystemReservedVirtualBase();
|
||||
}
|
||||
|
||||
bool IsValidAddress(const void* addr) const noexcept {
|
||||
const VAddr virtual_addr = reinterpret_cast<VAddr>(addr);
|
||||
const auto end_it = std::prev(vma_map.end());
|
||||
const VAddr end_addr = end_it->first + end_it->second.size;
|
||||
return virtual_addr >= vma_map.begin()->first && virtual_addr < end_addr;
|
||||
}
|
||||
|
||||
bool TryWriteBacking(void* address, const void* data, u32 num_bytes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue