Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 in pmap_clear_modify(), we need to ...



details:   https://anonhg.NetBSD.org/src/rev/ba29f70c9b41
branches:  trunk
changeset: 515162:ba29f70c9b41
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Sep 18 02:23:14 2001 +0000

description:
in pmap_clear_modify(), we need to clear the TLB_W bit (ie. the hardware
write-enable bit) to re-enable modify-bit emulation even if we're doing HWREF.

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a820163d0f4f -r ba29f70c9b41 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Mon Sep 17 23:52:14 2001 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Tue Sep 18 02:23:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.109 2001/09/15 07:12:22 eeh Exp $   */
+/*     $NetBSD: pmap.c,v 1.110 2001/09/18 02:23:14 chs Exp $   */
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
 /*
@@ -2860,7 +2860,7 @@
                        if (data & (TLB_MODIFY))
                                changed |= 1;
 #ifdef HWREF
-                       data &= ~(TLB_MODIFY);
+                       data &= ~(TLB_MODIFY|TLB_W);
 #else
                        data &= ~(TLB_MODIFY|TLB_W|TLB_REAL_W);
 #endif



Home | Main Index | Thread Index | Old Index