diff -r c734af59ce98 -r 5b5d147c7838 kernel/eka/memmodel/epoc/flexible/mmu/mmu.h --- a/kernel/eka/memmodel/epoc/flexible/mmu/mmu.h Tue May 11 17:28:22 2010 +0300 +++ b/kernel/eka/memmodel/epoc/flexible/mmu/mmu.h Tue May 25 14:09:55 2010 +0300 @@ -571,6 +571,23 @@ } /** + Mark this page as an oldest old page. + + This does not mark the object as modified as conceptually it's still an oldest page. This means + that if a page goes from young -> old -> oldest the second transition will not interrupt the + page restriction that happens on the first. + + @pre #MmuLock held. + */ + FORCE_INLINE void SetOldestPage(TPagedState aPagedState) + { + CheckAccess("SetPagedState"); + __NK_ASSERT_DEBUG(iPagedState==EPagedOld); + __NK_ASSERT_DEBUG(aPagedState==EPagedOldestClean || aPagedState==EPagedOldestDirty); + iPagedState = aPagedState; + } + + /** Set the page's #iModifier value. #iModifier is cleared to zero whenever the usage or paging state of the page