kernel/eka/memmodel/epoc/flexible/mmu/mmu.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
child 8 538db54a451d
equal deleted inserted replaced
2:4122176ea935 4:56f325a607ea
  1035 
  1035 
  1036 TInt Mmu::ClaimPhysicalRam(TPhysAddr aPhysAddr, TUint aCount, TRamAllocFlags aFlags)
  1036 TInt Mmu::ClaimPhysicalRam(TPhysAddr aPhysAddr, TUint aCount, TRamAllocFlags aFlags)
  1037 	{
  1037 	{
  1038 	__KTRACE_OPT(KMMU,Kern::Printf("Mmu::ClaimPhysicalRam(0x%08x,0x%x,0x%08x)",aPhysAddr,aCount,aFlags));
  1038 	__KTRACE_OPT(KMMU,Kern::Printf("Mmu::ClaimPhysicalRam(0x%08x,0x%x,0x%08x)",aPhysAddr,aCount,aFlags));
  1039 	aPhysAddr &= ~KPageMask;
  1039 	aPhysAddr &= ~KPageMask;
  1040 	TInt r = iRamPageAllocator->ClaimPhysicalRam(aPhysAddr,aCount);
  1040 	TInt r = iRamPageAllocator->ClaimPhysicalRam(aPhysAddr,(aCount << KPageShift));
  1041 	if(r!=KErrNone)
  1041 	if(r!=KErrNone)
  1042 		return r;
  1042 		return r;
  1043 
  1043 
  1044 	PagesAllocated((TPhysAddr*)(aPhysAddr|1), aCount, aFlags);
  1044 	PagesAllocated((TPhysAddr*)(aPhysAddr|1), aCount, aFlags);
  1045 
  1045