pmap_clear_modify() needs to clear PTE_W.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-07-15 15:45:33 +00:00
parent 24074d28ec
commit 1fd21cb005
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350003

View File

@ -4187,7 +4187,7 @@ restart:
m));
l3 = pmap_l2_to_l3(l2, pv->pv_va);
if ((pmap_load(l3) & (PTE_D | PTE_W)) == (PTE_D | PTE_W)) {
pmap_clear_bits(l3, PTE_D);
pmap_clear_bits(l3, PTE_D | PTE_W);
pmap_invalidate_page(pmap, pv->pv_va);
}
PMAP_UNLOCK(pmap);