Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148005425
D22044.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22044.diff
View Options
Index: head/sys/powerpc/aim/mmu_oea.c
===================================================================
--- head/sys/powerpc/aim/mmu_oea.c
+++ head/sys/powerpc/aim/mmu_oea.c
@@ -2108,23 +2108,26 @@
pvo->pvo_pmap->pm_stats.wired_count--;
/*
+ * Remove this PVO from the PV and pmap lists.
+ */
+ LIST_REMOVE(pvo, pvo_vlink);
+ RB_REMOVE(pvo_tree, &pvo->pvo_pmap->pmap_pvo, pvo);
+
+ /*
* Save the REF/CHG bits into their cache if the page is managed.
+ * Clear PGA_WRITEABLE if all mappings of the page have been removed.
*/
if ((pvo->pvo_vaddr & PVO_MANAGED) == PVO_MANAGED) {
- struct vm_page *pg;
+ struct vm_page *pg;
pg = PHYS_TO_VM_PAGE(pvo->pvo_pte.pte.pte_lo & PTE_RPGN);
if (pg != NULL) {
moea_attr_save(pg, pvo->pvo_pte.pte.pte_lo &
(PTE_REF | PTE_CHG));
+ if (LIST_EMPTY(&pg->md.mdpg_pvoh))
+ vm_page_aflag_clear(pg, PGA_WRITEABLE);
}
}
-
- /*
- * Remove this PVO from the PV and pmap lists.
- */
- LIST_REMOVE(pvo, pvo_vlink);
- RB_REMOVE(pvo_tree, &pvo->pvo_pmap->pmap_pvo, pvo);
/*
* Remove this from the overflow list and return it to the pool
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 3:44 AM (10 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29751666
Default Alt Text
D22044.diff (1 KB)
Attached To
Mode
D22044: Clear PGA_WRITEABLE in moea_remove_pvo().
Attached
Detach File
Event Timeline
Log In to Comment