X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=KernelLand%2FKernel%2Fheap.c;h=396fa238904c6e14b2f2e714818634b7d99a1a75;hb=2b339e917d778c76b249457bcb66c4fb0007c495;hp=6e0a4c10948676b304d43e086f7b07fa0395c657;hpb=34dd97af59a64afda861ce636b272c7b90531f97;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/heap.c b/KernelLand/Kernel/heap.c index 6e0a4c10..396fa238 100755 --- a/KernelLand/Kernel/heap.c +++ b/KernelLand/Kernel/heap.c @@ -71,7 +71,7 @@ static inline tHeapFoot *Heap_PrevFoot(tHeapHead *Head) { */ void *Heap_Extend(size_t Bytes) { - Debug("Heap_Extend(0x%x)", Bytes); + //Debug("Heap_Extend(0x%x)", Bytes); // Bounds Check if( gHeapEnd == (tHeapHead*)MM_KHEAP_MAX ) { @@ -97,7 +97,7 @@ void *Heap_Extend(size_t Bytes) // Heap expands in pages for( Uint i = 0; i < pages; i ++ ) { - if( !MM_Allocate( (tVAddr)gHeapEnd+(i<<12) ) ) + if( !MM_Allocate( (tPage*)gHeapEnd + i ) ) { Warning("OOM - Heap_Extend (%i bytes)"); Heap_Dump();