summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64')
-rw-r--r--src/kernel/arch/amd64/pagedir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/arch/amd64/pagedir.c b/src/kernel/arch/amd64/pagedir.c
index 75c9746..f0e45d5 100644
--- a/src/kernel/arch/amd64/pagedir.c
+++ b/src/kernel/arch/amd64/pagedir.c
@@ -31,9 +31,7 @@ static __user void *addr_canonize(const __user void *addr) {
struct pagedir *pagedir_new(void) {
- struct pagedir *dir = page_alloc(1);
- memset(dir, 0, sizeof *dir);
- return dir;
+ return page_zalloc(1);
}
void pagedir_free(struct pagedir *dir) {