Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2019 16:19:06 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r351341 - stable/12/sys/riscv/riscv
Message-ID:  <201908211619.x7LGJ625087120@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908211619.x7LGJ625087120>