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