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