kernel/eka/memmodel/epoc/flexible/mmu/mmu.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
child 8 538db54a451d
--- a/kernel/eka/memmodel/epoc/flexible/mmu/mmu.cpp	Mon Dec 21 16:14:42 2009 +0000
+++ b/kernel/eka/memmodel/epoc/flexible/mmu/mmu.cpp	Wed Dec 23 11:43:31 2009 +0000
@@ -1037,7 +1037,7 @@
 	{
 	__KTRACE_OPT(KMMU,Kern::Printf("Mmu::ClaimPhysicalRam(0x%08x,0x%x,0x%08x)",aPhysAddr,aCount,aFlags));
 	aPhysAddr &= ~KPageMask;
-	TInt r = iRamPageAllocator->ClaimPhysicalRam(aPhysAddr,aCount);
+	TInt r = iRamPageAllocator->ClaimPhysicalRam(aPhysAddr,(aCount << KPageShift));
 	if(r!=KErrNone)
 		return r;