mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 16:45:47 +00:00
Kernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size.
This commit is contained in:
parent
ae5b0d437f
commit
59b8f91cb2
2 changed files with 28 additions and 0 deletions
|
@ -157,6 +157,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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue