summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/vm_manager.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 00:39:10 +0200
committerbunnei <bunneidev@gmail.com>2018-10-26 00:03:54 +0200
commita609b6907a67e927d1dd0ade0135c004c9507fad (patch)
treed0bf42917ad5c2f857ccbc7cd0e842521ad4f991 /src/core/hle/kernel/vm_manager.h
parentnro: Make LoadNro method accessible outside of apploader code. (diff)
downloadyuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar.gz
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar.bz2
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar.lz
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar.xz
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.tar.zst
yuzu-a609b6907a67e927d1dd0ade0135c004c9507fad.zip
Diffstat (limited to '')
-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.