diff options
Diffstat (limited to 'Source/Kernel/MemoryManager/PhysMem.ns.cpp')
-rw-r--r-- | Source/Kernel/MemoryManager/PhysMem.ns.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Kernel/MemoryManager/PhysMem.ns.cpp b/Source/Kernel/MemoryManager/PhysMem.ns.cpp index 1794106..382e8a4 100644 --- a/Source/Kernel/MemoryManager/PhysMem.ns.cpp +++ b/Source/Kernel/MemoryManager/PhysMem.ns.cpp @@ -61,8 +61,9 @@ void freeFrame(page_t *page) { if (page->frame == 0) { return; } else { - if (page->frame >= 0x100) //First 1M are reserved (system) - frames->clearBit(page->frame / 0x1000); + if (page->frame >= 0x100) { //First 1M are reserved (system) + frames->clearBit(page->frame); + } page->frame = 0; } } |