summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/vm_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-12 17:34:01 +0100
committerLioncash <mathew1800@gmail.com>2018-12-12 21:07:30 +0100
commita8cc03502b41b44150af71535d2b662a7ee3390c (patch)
tree71084e1b71b5fd705143bbceb44c46e49f63cac2 /src/core/hle/kernel/vm_manager.h
parentvm_manager: Migrate MemoryInfo and PageInfo to vm_manager.h (diff)
downloadyuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar.gz
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar.bz2
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar.lz
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar.xz
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.tar.zst
yuzu-a8cc03502b41b44150af71535d2b662a7ee3390c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/vm_manager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h
index 35f0f276e..91e8e8c8c 100644
--- a/src/core/hle/kernel/vm_manager.h
+++ b/src/core/hle/kernel/vm_manager.h
@@ -153,7 +153,7 @@ constexpr u32 ToSvcMemoryState(MemoryState state) {
struct MemoryInfo {
u64 base_address;
u64 size;
- u32 type;
+ u32 state;
u32 attributes;
u32 permission;
u32 device_refcount;
@@ -288,6 +288,14 @@ public:
ResultCode MirrorMemory(VAddr dst_addr, VAddr src_addr, u64 size, MemoryState state);
+ /// Queries the memory manager for information about the given address.
+ ///
+ /// @param address The address to query the memory manager about for information.
+ ///
+ /// @return A MemoryInfo instance containing information about the given address.
+ ///
+ MemoryInfo QueryMemory(VAddr address) const;
+
/**
* Scans all VMAs and updates the page table range of any that use the given vector as backing
* memory. This should be called after any operation that causes reallocation of the vector.