kernel/eka/memmodel/epoc/flexible/mmu/mcodepaging.cpp
branchRCL_3
changeset 87 2f92ad2dc5db
parent 0 a41df078684a
child 110 c734af59ce98
equal deleted inserted replaced
81:e7d2d738d3c2 87:2f92ad2dc5db
    62 	/**
    62 	/**
    63 	The single instance of this manager class.
    63 	The single instance of this manager class.
    64 	*/
    64 	*/
    65 	static DCodePagedMemoryManager TheManager;
    65 	static DCodePagedMemoryManager TheManager;
    66 
    66 
    67 	friend DPagingDevice* CodePagingDevice(TInt aDiveNum);
    67 	friend DPagingDevice* CodePagingDevice(TInt aDriveNum);
    68 	};
    68 	};
    69 
    69 
    70 
    70 
    71 /**
    71 /**
    72 Reference counted object containing a #TPagedCodeInfo.
    72 Reference counted object containing a #TPagedCodeInfo.
   205 	}
   205 	}
   206 
   206 
   207 
   207 
   208 TInt DCodePagedMemoryManager::CleanPage(DMemoryObject* aMemory, SPageInfo* aPageInfo, TPhysAddr*& aPageArrayEntry)
   208 TInt DCodePagedMemoryManager::CleanPage(DMemoryObject* aMemory, SPageInfo* aPageInfo, TPhysAddr*& aPageArrayEntry)
   209 	{
   209 	{
   210 	if(aPageInfo->IsDirty()==false)
   210 	if(!aPageInfo->IsDirty())
   211 		return KErrNone;
   211 		return KErrNone;
   212 
   212 
   213 	// shouldn't be asked to clean a page which is writable...
   213 	// shouldn't be asked to clean a page which is writable...
   214 	__NK_ASSERT_DEBUG(aPageInfo->IsWritable()==false);
   214 	__NK_ASSERT_DEBUG(!aPageInfo->IsWritable());
   215 
   215 
   216 	// Note, memory may have been modified by the CodeModifier class.
   216 	// Note, memory may have been modified by the CodeModifier class.
   217 
   217 
   218 	// just mark page as clean as we don't try and preserve code modifications...
   218 	// just mark page as clean as we don't try and preserve code modifications...
   219 	ThePager.SetClean(*aPageInfo);
   219 	ThePager.SetClean(*aPageInfo);