Fix in searchFree should fix #337

This commit is contained in:
georgemoralis 2024-07-29 14:04:12 +03:00
parent aa795f5c59
commit e6173dc5da
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ int MemoryManager::MapFile(void** out_addr, VAddr virtual_addr, size_t size, Mem
// Find first free area to map the file.
if (False(flags & MemoryMapFlags::Fixed)) {
mapped_addr = SearchFree(mapped_addr, size_aligned);
mapped_addr = SearchFree(mapped_addr, size_aligned,1);
}
if (True(flags & MemoryMapFlags::Fixed)) {