Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/arch/sun3/sun3x Pull up revision 1.87 (requested by...
details: https://anonhg.NetBSD.org/src/rev/47997bfa7779
branches: netbsd-2-0
changeset: 564786:47997bfa7779
user: tron <tron%NetBSD.org@localhost>
date: Wed Jun 08 11:32:19 2005 +0000
description:
Pull up revision 1.87 (requested by chs in ticket #1980):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.
diffstat:
sys/arch/sun3/sun3x/pmap.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 97307eafb74a -r 47997bfa7779 sys/arch/sun3/sun3x/pmap.c
--- a/sys/arch/sun3/sun3x/pmap.c Wed Jun 08 11:32:08 2005 +0000
+++ b/sys/arch/sun3/sun3x/pmap.c Wed Jun 08 11:32:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.84 2003/09/26 22:23:58 wiz Exp $ */
+/* $NetBSD: pmap.c,v 1.84.2.1 2005/06/08 11:32:19 tron Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84 2003/09/26 22:23:58 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84.2.1 2005/06/08 11:32:19 tron Exp $");
#include "opt_ddb.h"
#include "opt_pmap_debug.h"
@@ -1939,6 +1939,16 @@
c_pte->attr.raw |= MMU_SHORT_PTE_WP;
/*
+ * Mark the PTE as used and/or modified as specified by the flags arg.
+ */
+ if (flags & VM_PROT_ALL) {
+ c_pte->attr.raw |= MMU_SHORT_PTE_USED;
+ if (flags & VM_PROT_WRITE) {
+ c_pte->attr.raw |= MMU_SHORT_PTE_M;
+ }
+ }
+
+ /*
* If the mapping should be cache inhibited (indicated by the flag
* bits found on the lower order of the physical address.)
* mark the PTE as a cache inhibited page.
Home |
Main Index |
Thread Index |
Old Index