summaryrefslogtreecommitdiff
path: root/src/kernel/mem/paging.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-17 10:25:35 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-17 10:25:35 +0200
commit5bc8549a8d7f5c9644f878fe3ca55761663a2fd0 (patch)
tree93613f66d792af3ab5d0e516ff17eb2daf3c4575 /src/kernel/mem/paging.cpp
parentb6924d994ccdbe86ea67351d3c94600e14f5ed1f (diff)
downloadTCE-5bc8549a8d7f5c9644f878fe3ca55761663a2fd0.tar.gz
TCE-5bc8549a8d7f5c9644f878fe3ca55761663a2fd0.zip
Now booting on CD-ROM.
Diffstat (limited to 'src/kernel/mem/paging.cpp')
-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;