kernel: Also zero out mmap-ed pages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
95659639e5
commit
e466c51e9f
@ -53,7 +53,7 @@ Result<u64> sys_mmap(Registers*, SyscallArgs args)
|
|||||||
kdbgln("mmap: mapping memory at %#lx, size=%zu", address, len);
|
kdbgln("mmap: mapping memory at %#lx, size=%zu", address, len);
|
||||||
#endif
|
#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)
|
Result<u64> sys_munmap(Registers*, SyscallArgs args)
|
||||||
|
Loading…
Reference in New Issue
Block a user