diff --git a/kernel/src/sys/mmap.cpp b/kernel/src/sys/mmap.cpp index 3992ab66..46f8d5f7 100644 --- a/kernel/src/sys/mmap.cpp +++ b/kernel/src/sys/mmap.cpp @@ -53,7 +53,7 @@ Result 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 sys_munmap(Registers*, SyscallArgs args)