summaryrefslogtreecommitdiff
path: root/src/kernel/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/mem')
-rw-r--r--src/kernel/mem/paging.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/mem/paging.cpp b/src/kernel/mem/paging.cpp
index 496b70c..8beee16 100644
--- a/src/kernel/mem/paging.cpp
+++ b/src/kernel/mem/paging.cpp
@@ -39,6 +39,7 @@ void paging_init(size_t totalRam) {
frames.size = totalRam / 0x1000;
frames.bits = (uint32_t*)ksbrk(INDEX_FROM_BIT(frames.size));
+ memset(frames.bits, 0, INDEX_FROM_BIT(frames.size));
kernel_pagedir = (page_directory*)ksbrk(sizeof(page_directory));
kernel_pagedir->mappedSegs = 0;