diff -r 95f71bcdcdb7 -r 657f875b013e kernel/eka/memmodel/epoc/mmubase/mmubase.cpp --- a/kernel/eka/memmodel/epoc/mmubase/mmubase.cpp Thu May 27 14:17:14 2010 +0300 +++ b/kernel/eka/memmodel/epoc/mmubase/mmubase.cpp Fri Jun 11 15:02:23 2010 +0300 @@ -483,7 +483,7 @@ TInt MmuBase::AllocPhysicalRam(TInt aSize, TPhysAddr& aPhysAddr, TInt aAlign) { __KTRACE_OPT(KMMU,Kern::Printf("Mmu::AllocPhysicalRam() size=%x align=%d",aSize,aAlign)); - TInt r=AllocContiguousRam(aSize, aPhysAddr, EPageFixed, aAlign); + TInt r=AllocContiguousRam(aSize, aPhysAddr, aAlign); if (r!=KErrNone) { iAllocFailed=ETrue; @@ -516,7 +516,7 @@ TInt MmuBase::ZoneAllocPhysicalRam(TUint* aZoneIdList, TUint aZoneIdCount, TInt aSize, TPhysAddr& aPhysAddr, TInt aAlign) { __KTRACE_OPT(KMMU,Kern::Printf("Mmu::ZoneAllocPhysicalRam() size=0x%x align=%d", aSize, aAlign)); - TInt r = ZoneAllocContiguousRam(aZoneIdList, aZoneIdCount, aSize, aPhysAddr, EPageFixed, aAlign); + TInt r = ZoneAllocContiguousRam(aZoneIdList, aZoneIdCount, aSize, aPhysAddr, aAlign); if (r!=KErrNone) { iAllocFailed=ETrue; @@ -725,20 +725,19 @@ } -TInt MmuBase::AllocContiguousRam(TInt aSize, TPhysAddr& aPhysAddr, TZonePageType aPageType, TInt aAlign, TUint aBlockedZoneId, TBool aBlockRest) +TInt MmuBase::AllocContiguousRam(TInt aSize, TPhysAddr& aPhysAddr, TInt aAlign) { #ifdef _DEBUG if(K::CheckForSimulatedAllocFail()) return KErrNoMemory; #endif - __NK_ASSERT_DEBUG(aPageType == EPageFixed); TUint contigPages = (aSize + KPageSize - 1) >> KPageShift; - TInt r = iRamPageAllocator->AllocContiguousRam(contigPages, aPhysAddr, aPageType, aAlign, aBlockedZoneId, aBlockRest); + TInt r = iRamPageAllocator->AllocContiguousRam(contigPages, aPhysAddr, aAlign); if (r == KErrNoMemory && contigPages > KMaxFreeableContiguousPages) {// Allocation failed but as this is a large allocation flush the RAM cache // and reattempt the allocation as large allocation wouldn't discard pages. iRamCache->FlushAll(); - r = iRamPageAllocator->AllocContiguousRam(contigPages, aPhysAddr, aPageType, aAlign, aBlockedZoneId, aBlockRest); + r = iRamPageAllocator->AllocContiguousRam(contigPages, aPhysAddr, aAlign); } return r; } @@ -750,16 +749,15 @@ @param aZoneIdCount The number of IDs listed in aZoneIdList @param aSize The number of bytes to allocate @param aPhysAddr Will receive the physical base address of the allocated RAM -@param aPageType The type of the pages being allocated @param aAlign The log base 2 alginment required */ -TInt MmuBase::ZoneAllocContiguousRam(TUint* aZoneIdList, TUint aZoneIdCount, TInt aSize, TPhysAddr& aPhysAddr, TZonePageType aPageType, TInt aAlign) +TInt MmuBase::ZoneAllocContiguousRam(TUint* aZoneIdList, TUint aZoneIdCount, TInt aSize, TPhysAddr& aPhysAddr, TInt aAlign) { #ifdef _DEBUG if(K::CheckForSimulatedAllocFail()) return KErrNoMemory; #endif - return iRamPageAllocator->ZoneAllocContiguousRam(aZoneIdList, aZoneIdCount, aSize, aPhysAddr, aPageType, aAlign); + return iRamPageAllocator->ZoneAllocContiguousRam(aZoneIdList, aZoneIdCount, aSize, aPhysAddr, aAlign); } SPageInfo* SPageInfo::SafeFromPhysAddr(TPhysAddr aAddress)