svn commit: r351341 - stable/12/sys/riscv/riscv

Mark Johnston markj at FreeBSD.org
Wed Aug 21 16:19:07 UTC 2019


Author: markj
Date: Wed Aug 21 16:19:06 2019
New Revision: 351341
URL: https://svnweb.freebsd.org/changeset/base/351341

Log:
  MFC r350003:
  pmap_clear_modify() needs to clear PTE_W.

Modified:
  stable/12/sys/riscv/riscv/pmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/12/sys/riscv/riscv/pmap.c	Wed Aug 21 16:18:32 2019	(r351340)
+++ stable/12/sys/riscv/riscv/pmap.c	Wed Aug 21 16:19:06 2019	(r351341)
@@ -4177,7 +4177,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);


More information about the svn-src-all mailing list