Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 In pmap_changeprot_local(), drop the dirty ...



details:   https://anonhg.NetBSD.org/src/rev/c530fbd85c78
branches:  trunk
changeset: 745029:c530fbd85c78
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Feb 21 18:34:37 2020 +0000

description:
In pmap_changeprot_local(), drop the dirty bit along with the write bit.

diffstat:

 sys/arch/x86/x86/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4182dfa89d35 -r c530fbd85c78 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Fri Feb 21 18:31:55 2020 +0000
+++ b/sys/arch/x86/x86/pmap.c   Fri Feb 21 18:34:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.356 2020/02/21 18:31:55 maxv Exp $  */
+/*     $NetBSD: pmap.c,v 1.357 2020/02/21 18:34:37 maxv Exp $  */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017, 2019, 2020 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.356 2020/02/21 18:31:55 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.357 2020/02/21 18:34:37 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -868,7 +868,7 @@
        if ((prot & VM_PROT_WRITE) != 0)
                npte |= PTE_W;
        else
-               npte &= ~PTE_W;
+               npte &= ~(PTE_W|PTE_D);
 
        if (opte != npte) {
                pmap_pte_set(pte, npte);



Home | Main Index | Thread Index | Old Index