kernel/eka/memmodel/epoc/flexible/mmu/mdatapaging.cpp
branchRCL_3
changeset 22 2f92ad2dc5db
parent 0 a41df078684a
child 26 c734af59ce98
equal deleted inserted replaced
21:e7d2d738d3c2 22:2f92ad2dc5db
   616 	}
   616 	}
   617 
   617 
   618 
   618 
   619 TInt DDataPagedMemoryManager::CleanPage(DMemoryObject* aMemory, SPageInfo* aPageInfo, TPhysAddr*& aPageArrayEntry)
   619 TInt DDataPagedMemoryManager::CleanPage(DMemoryObject* aMemory, SPageInfo* aPageInfo, TPhysAddr*& aPageArrayEntry)
   620 	{
   620 	{
   621 	if(aPageInfo->IsDirty()==false)
   621 	if(!aPageInfo->IsDirty())
   622 		return KErrNone;
   622 		return KErrNone;
   623 
   623 
   624 	// shouldn't be asked to clean a page which is writable...
   624 	// shouldn't be asked to clean a page which is writable...
   625 	__NK_ASSERT_DEBUG(aPageInfo->IsWritable()==false);
   625 	__NK_ASSERT_DEBUG(!aPageInfo->IsWritable());
   626 
   626 
   627 	// mark page as being modified by us...
   627 	// mark page as being modified by us...
   628 	TUint modifierInstance; // dummy variable used only for it's storage address on the stack
   628 	TUint modifierInstance; // dummy variable used only for it's storage address on the stack
   629 	aPageInfo->SetModifier(&modifierInstance);
   629 	aPageInfo->SetModifier(&modifierInstance);
   630 
   630