Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mvme68k/mvme68k Sync with Jason's latest changes to...
details: https://anonhg.NetBSD.org/src/rev/935137ad8f11
branches: trunk
changeset: 471511:935137ad8f11
user: scw <scw%NetBSD.org@localhost>
date: Sat Apr 03 13:15:16 1999 +0000
description:
Sync with Jason's latest changes to hp300 pmap.
diffstat:
sys/arch/mvme68k/mvme68k/pmap.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 3d88b677f12a -r 935137ad8f11 sys/arch/mvme68k/mvme68k/pmap.c
--- a/sys/arch/mvme68k/mvme68k/pmap.c Sat Apr 03 13:13:19 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/pmap.c Sat Apr 03 13:15:16 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.31 1999/04/03 13:15:16 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