Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/mvme68k/mvme68k Pullup 1.31 from trunk.



details:   https://anonhg.NetBSD.org/src/rev/8afd8d3280d4
branches:  netbsd-1-4
changeset: 468072:8afd8d3280d4
user:      scw <scw%NetBSD.org@localhost>
date:      Mon Apr 05 17:27:58 1999 +0000

description:
Pullup 1.31 from trunk.

diffstat:

 sys/arch/mvme68k/mvme68k/pmap.c |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f5cd5f0223e5 -r 8afd8d3280d4 sys/arch/mvme68k/mvme68k/pmap.c
--- a/sys/arch/mvme68k/mvme68k/pmap.c   Mon Apr 05 17:17:05 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/pmap.c   Mon Apr 05 17:27:58 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.30 1999/03/27 05:57:04 mycroft Exp $        */
+/*     $NetBSD: pmap.c,v 1.30.2.1 1999/04/05 17:27:58 scw Exp $        */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -1179,6 +1179,20 @@
                        npv->pv_flags = 0;
                        pv->pv_next = npv;
                }
+
+               /*
+                * Speed pmap_is_referenced() or pmap_is_modified() based
+                * on the hint provided in access_type.
+                */
+#ifdef DIAGNOSTIC
+               if (access_type & ~prot)
+                       panic("pmap_enter: access_type exceeds prot");
+#endif
+               if (access_type & VM_PROT_WRITE)
+                       *pa_to_attribute(pa) |= (PG_U|PG_M);
+               else if (access_type & VM_PROT_ALL)
+                       *pa_to_attribute(pa) |= PG_U;
+
                splx(s);
        }
        /*



Home | Main Index | Thread Index | Old Index