summaryrefslogtreecommitdiff
path: root/Source/Kernel/MemoryManager/Mem.ns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/MemoryManager/Mem.ns.cpp')
-rw-r--r--Source/Kernel/MemoryManager/Mem.ns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/MemoryManager/Mem.ns.cpp b/Source/Kernel/MemoryManager/Mem.ns.cpp
index 5d30f5f..fa407d6 100644
--- a/Source/Kernel/MemoryManager/Mem.ns.cpp
+++ b/Source/Kernel/MemoryManager/Mem.ns.cpp
@@ -78,7 +78,7 @@ void removeFromHeapIndex(heap_header_t *e) {
//***************************************************************************
void createHeap() {
u32int heapIndexSize = PhysMem::total() * 64 + 0x10000;
- heapStart = placementAddress + 0x10000; //Set initial heap start
+ heapStart = (placementAddress & 0xFFFFF000) + 0x10000; //Set initial heap start
heapEnd = heapStart + HEAP_MIN_SIZE + heapIndexSize; //Set heap end
//Alocate frames for the heap