summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/vm_manager.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-26 03:54:35 +0200
committerGitHub <noreply@github.com>2018-10-26 03:54:35 +0200
commita94831f2a99360a7dbc2602affc34bfaa8b048d5 (patch)
treee9bfa2d0d7a1fa0ade7ad8c0c34bba7068e6fe9f /src/core/hle/kernel/vm_manager.h
parentMerge pull request #1583 from DarkLordZach/rle-size (diff)
parentldr: Partially implement LoadNro. (diff)
downloadyuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar.gz
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar.bz2
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar.lz
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar.xz
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.tar.zst
yuzu-a94831f2a99360a7dbc2602affc34bfaa8b048d5.zip
Diffstat (limited to 'src/core/hle/kernel/vm_manager.h')
-rw-r--r--src/core/hle/kernel/vm_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h
index 84c890224..2447cbb8f 100644
--- a/src/core/hle/kernel/vm_manager.h
+++ b/src/core/hle/kernel/vm_manager.h
@@ -158,6 +158,14 @@ public:
ResultVal<VMAHandle> MapBackingMemory(VAddr target, u8* memory, u64 size, MemoryState state);
/**
+ * Finds the first free address that can hold a region of the desired size.
+ *
+ * @param size Size of the desired region.
+ * @return The found free address.
+ */
+ ResultVal<VAddr> FindFreeRegion(u64 size) const;
+
+ /**
* Maps a memory-mapped IO region at a given address.
*
* @param target The guest address to start the mapping at.