summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_page_table.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-26 09:25:52 +0100
committerbunnei <bunneidev@gmail.com>2022-03-26 09:25:52 +0100
commit5b667f5e520e6fa872e6a3dc7947fcae944a8d5a (patch)
tree3e35effc5f12f16b47c9369b984e5338eeff9807 /src/core/hle/kernel/k_page_table.h
parenthle: kernel: k_page_table: Add IsHeapPhysicalAddress method. (diff)
downloadyuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar.gz
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar.bz2
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar.lz
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar.xz
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.tar.zst
yuzu-5b667f5e520e6fa872e6a3dc7947fcae944a8d5a.zip
Diffstat (limited to 'src/core/hle/kernel/k_page_table.h')
-rw-r--r--src/core/hle/kernel/k_page_table.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_page_table.h b/src/core/hle/kernel/k_page_table.h
index 2ae7affa0..b61a39145 100644
--- a/src/core/hle/kernel/k_page_table.h
+++ b/src/core/hle/kernel/k_page_table.h
@@ -72,6 +72,10 @@ public:
ResultCode UnlockForDeviceAddressSpace(VAddr addr, std::size_t size);
ResultCode LockForCodeMemory(VAddr addr, std::size_t size);
ResultCode UnlockForCodeMemory(VAddr addr, std::size_t size);
+ ResultCode MakeAndOpenPageGroup(KPageLinkedList* out, VAddr address, size_t num_pages,
+ KMemoryState state_mask, KMemoryState state,
+ KMemoryPermission perm_mask, KMemoryPermission perm,
+ KMemoryAttribute attr_mask, KMemoryAttribute attr);
Common::PageTable& PageTableImpl() {
return page_table_impl;
@@ -160,6 +164,8 @@ private:
attr_mask, attr, ignore_attr);
}
+ ResultCode MakePageGroup(KPageLinkedList& pg, VAddr addr, size_t num_pages);
+
bool IsLockedByCurrentThread() const {
return general_lock.IsLockedByCurrentThread();
}