From 6332f2561890edd654eafaeb58db16a131573319 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Mon, 14 Sep 2009 18:00:33 +0200 Subject: Added a few commands to kernel shell (rm && mkdir). Also fixed a bug in VFS::remove. --- Source/Kernel/MemoryManager/PhysMem.ns.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Kernel/MemoryManager') diff --git a/Source/Kernel/MemoryManager/PhysMem.ns.cpp b/Source/Kernel/MemoryManager/PhysMem.ns.cpp index a9bfd35..19323a7 100644 --- a/Source/Kernel/MemoryManager/PhysMem.ns.cpp +++ b/Source/Kernel/MemoryManager/PhysMem.ns.cpp @@ -63,7 +63,8 @@ void freeFrame(page_t *page) { if (page->frame == 0) { return; } else { - frames->clearBit(page->frame / 0x1000); + if (page->frame >= 0x100) //First 1M are reserved (system) + frames->clearBit(page->frame / 0x1000); page->frame = 0; } } -- cgit v1.2.3