equal
deleted
inserted
replaced
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 { |