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/amiga/amiga Pull up revision 1.113 (requested ...
details: https://anonhg.NetBSD.org/src/rev/ed06fa6c31cc
branches: netbsd-2-0
changeset: 564788:ed06fa6c31cc
user: tron <tron%NetBSD.org@localhost>
date: Wed Jun 08 11:32:38 2005 +0000
description:
Pull up revision 1.113 (requested by chs in ticket #1980):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.
diffstat:
sys/arch/amiga/amiga/pmap.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 7c3dba5418b3 -r ed06fa6c31cc sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c Wed Jun 08 11:32:28 2005 +0000
+++ b/sys/arch/amiga/amiga/pmap.c Wed Jun 08 11:32:38 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.108.2.1 2004/10/01 02:37:08 jmc Exp $ */
+/* $NetBSD: pmap.c,v 1.108.2.2 2005/06/08 11:32:38 tron Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.108.2.1 2004/10/01 02:37:08 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.108.2.2 2005/06/08 11:32:38 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1340,6 +1340,12 @@
(kernel_copyback || pmap != pmap_kernel()))
npte |= PG_CCB; /* cache copyback */
#endif
+ if (flags & VM_PROT_ALL) {
+ npte |= PG_U;
+ if (flags & VM_PROT_WRITE)
+ npte |= PG_M;
+ }
+
/*
* Remember if this was a wiring-only change.
* If so, we need not flush the TLB and caches.
Home |
Main Index |
Thread Index |
Old Index