diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-03 03:06:26 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-09 02:38:20 +0100 |
commit | 853e58e5932c4703bb521b5454a9b0fc325c7152 (patch) | |
tree | 5bf52ede3772c7361d0805b5142b22cc6e1acf15 /src/core/hle/kernel/k_page_table.h | |
parent | Merge pull request #7986 from lat9nq/vk-callback (diff) | |
download | yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar.gz yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar.bz2 yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar.lz yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar.xz yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.tar.zst yuzu-853e58e5932c4703bb521b5454a9b0fc325c7152.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_page_table.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h index aea1b8f63..e99abe36a 100644 --- a/src/core/hle/kernel/k_page_table.h +++ b/src/core/hle/kernel/k_page_table.h @@ -253,7 +253,9 @@ public: constexpr bool IsInsideASLRRegion(VAddr address, std::size_t size) const { return !IsOutsideASLRRegion(address, size); } - + constexpr std::size_t GetNumGuardPages() const { + return IsKernel() ? 1 : 4; + } PAddr GetPhysicalAddr(VAddr addr) const { const auto backing_addr = page_table_impl.backing_addr[addr >> PageBits]; ASSERT(backing_addr); @@ -275,10 +277,6 @@ private: return is_aslr_enabled; } - constexpr std::size_t GetNumGuardPages() const { - return IsKernel() ? 1 : 4; - } - constexpr bool ContainsPages(VAddr addr, std::size_t num_pages) const { return (address_space_start <= addr) && (num_pages <= (address_space_end - address_space_start) / PageSize) && |