diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-26 03:54:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 03:54:35 +0200 |
commit | a94831f2a99360a7dbc2602affc34bfaa8b048d5 (patch) | |
tree | e9bfa2d0d7a1fa0ade7ad8c0c34bba7068e6fe9f /src/core/hle/kernel/vm_manager.h | |
parent | Merge pull request #1583 from DarkLordZach/rle-size (diff) | |
parent | ldr: Partially implement LoadNro. (diff) | |
download | yuzu-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.h | 8 |
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. |