svn commit: r350003 - head/sys/riscv/riscv
Mark Johnston
markj at FreeBSD.org
Mon Jul 15 15:45:34 UTC 2019
Author: markj
Date: Mon Jul 15 15:45:33 2019
New Revision: 350003
URL: https://svnweb.freebsd.org/changeset/base/350003
Log:
pmap_clear_modify() needs to clear PTE_W.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/riscv/riscv/pmap.c
Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c Mon Jul 15 15:43:15 2019 (r350002)
+++ head/sys/riscv/riscv/pmap.c Mon Jul 15 15:45:33 2019 (r350003)
@@ -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);
More information about the svn-src-all
mailing list