From 267bda33af7c2f4efa107496a9cbd6726b53a101 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sat, 12 Sep 2009 19:31:53 +0200 Subject: Fixed some bugs --- Source/Kernel/MemoryManager/Mem.ns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Kernel/MemoryManager') 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 -- cgit v1.2.3