diff options
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/mem/paging.cpp | 1 |
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; |