kernel: Also zero out mmap-ed pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-04-17 22:16:27 +02:00
parent 95659639e5
commit e466c51e9f
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -53,7 +53,7 @@ Result<u64> sys_mmap(Registers*, SyscallArgs args)
kdbgln("mmap: mapping memory at %#lx, size=%zu", address, len);
#endif
return MemoryManager::alloc_at(address, get_blocks_from_size(len, ARCH_PAGE_SIZE), mmu_flags);
return MemoryManager::alloc_at_zeroed(address, get_blocks_from_size(len, ARCH_PAGE_SIZE), mmu_flags);
}
Result<u64> sys_munmap(Registers*, SyscallArgs args)