summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2022-08-19 18:03:59 +0200
committerdzwdz2022-08-19 18:03:59 +0200
commit7a4bc281958c639cd52ff4f192933aa161ba81a4 (patch)
tree6afc254b32bc724d872227f4fb3699ef03f511a0 /src/kernel/syscalls.c
parente9161cdcda9e5170f3ea5f18a8275395004ffce4 (diff)
kernel: kzalloc
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 5f380b6..d6b23d0 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -323,8 +323,8 @@ void __user *_syscall_memflag(void __user *addr, size_t len, int flags) {
phys = pagedir_virt2phys(pages, iter, false, false);
if (!phys) {
- phys = page_alloc(1);
- memset(phys, 0, PAGE_SIZE); // TODO somehow test this
+ // TODO test zeroing of user pages
+ phys = page_zalloc(1);
pagedir_map(pages, iter, phys, true, true);
}
}