kernel/eka/memmodel/epoc/flexible/mmu/mmu.cpp
branchRCL_3
changeset 43 c1f20ce4abcf
parent 41 0ffb4e86fcc9
child 44 3e88ff8f41d5
equal deleted inserted replaced
42:a179b74831c9 43:c1f20ce4abcf
  1091 
  1091 
  1092 #ifdef BTRACE_KERNEL_MEMORY
  1092 #ifdef BTRACE_KERNEL_MEMORY
  1093 	BTrace8(BTrace::EKernelMemory, BTrace::EKernelMemoryDrvPhysFree, bytes, aPhysAddr);
  1093 	BTrace8(BTrace::EKernelMemory, BTrace::EKernelMemoryDrvPhysFree, bytes, aPhysAddr);
  1094 	Epoc::DriverAllocdPhysRam -= bytes;
  1094 	Epoc::DriverAllocdPhysRam -= bytes;
  1095 #endif
  1095 #endif
       
  1096 	}
       
  1097 
       
  1098 
       
  1099 TInt Mmu::FreeRamZone(TUint aZoneId)
       
  1100 	{
       
  1101 	TPhysAddr zoneBase;
       
  1102 	TUint zonePages;
       
  1103 	TInt r = iRamPageAllocator->GetZoneAddress(aZoneId, zoneBase, zonePages);
       
  1104 	if (r != KErrNone)
       
  1105 		return r;
       
  1106 	FreePhysicalRam(zoneBase, zonePages);
       
  1107 	return KErrNone;
  1096 	}
  1108 	}
  1097 
  1109 
  1098 
  1110 
  1099 TInt Mmu::ClaimPhysicalRam(TPhysAddr aPhysAddr, TUint aCount, TRamAllocFlags aFlags)
  1111 TInt Mmu::ClaimPhysicalRam(TPhysAddr aPhysAddr, TUint aCount, TRamAllocFlags aFlags)
  1100 	{
  1112 	{