From 5bc8549a8d7f5c9644f878fe3ca55761663a2fd0 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 17 May 2012 10:25:35 +0200 Subject: Now booting on CD-ROM. --- src/kernel/mem/paging.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3