diff options
Diffstat (limited to 'Source/Kernel/MemoryManager')
-rw-r--r-- | Source/Kernel/MemoryManager/PhysMem.ns.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |