equal
deleted
inserted
replaced
566 { |
566 { |
567 CheckAccess("SetPagedState"); |
567 CheckAccess("SetPagedState"); |
568 __NK_ASSERT_DEBUG(aPagedState==iPagedState || iPagedState!=EPagedPinned || iPinCount==0); // make sure don't set an unpinned state if iPinCount!=0 |
568 __NK_ASSERT_DEBUG(aPagedState==iPagedState || iPagedState!=EPagedPinned || iPinCount==0); // make sure don't set an unpinned state if iPinCount!=0 |
569 iPagedState = aPagedState; |
569 iPagedState = aPagedState; |
570 iModifier = 0; |
570 iModifier = 0; |
|
571 } |
|
572 |
|
573 /** |
|
574 Mark this page as an oldest old page. |
|
575 |
|
576 This does not mark the object as modified as conceptually it's still an oldest page. This means |
|
577 that if a page goes from young -> old -> oldest the second transition will not interrupt the |
|
578 page restriction that happens on the first. |
|
579 |
|
580 @pre #MmuLock held. |
|
581 */ |
|
582 FORCE_INLINE void SetOldestPage(TPagedState aPagedState) |
|
583 { |
|
584 CheckAccess("SetPagedState"); |
|
585 __NK_ASSERT_DEBUG(iPagedState==EPagedOld); |
|
586 __NK_ASSERT_DEBUG(aPagedState==EPagedOldestClean || aPagedState==EPagedOldestDirty); |
|
587 iPagedState = aPagedState; |
571 } |
588 } |
572 |
589 |
573 /** |
590 /** |
574 Set the page's #iModifier value. |
591 Set the page's #iModifier value. |
575 |
592 |