Fix in searchFree should fix #337
This commit is contained in:
parent
aa795f5c59
commit
e6173dc5da
|
@ -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.
|
// Find first free area to map the file.
|
||||||
if (False(flags & MemoryMapFlags::Fixed)) {
|
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)) {
|
if (True(flags & MemoryMapFlags::Fixed)) {
|
||||||
|
|
Loading…
Reference in New Issue