X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fheap.c;h=d4304c27abac3320c15230d0a67cb6ac82f846d9;hb=48f6d3ace33f15e2c46fb4c7a79f1f647e446e33;hp=6e0a4c10948676b304d43e086f7b07fa0395c657;hpb=34dd97af59a64afda861ce636b272c7b90531f97;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/heap.c b/KernelLand/Kernel/heap.c index 6e0a4c10..d4304c27 100755 --- a/KernelLand/Kernel/heap.c +++ b/KernelLand/Kernel/heap.c @@ -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();