Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/arch/amiga/amiga Pull up revision 1.113 (requested by...
details: https://anonhg.NetBSD.org/src/rev/8e9cfd480a66
branches: netbsd-3
changeset: 576004:8e9cfd480a66
user: tron <tron%NetBSD.org@localhost>
date: Mon Jun 06 12:16:55 2005 +0000
description:
Pull up revision 1.113 (requested by chs in ticket #424):
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 7c20685dfe48 -r 8e9cfd480a66 sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c Mon Jun 06 12:16:46 2005 +0000
+++ b/sys/arch/amiga/amiga/pmap.c Mon Jun 06 12:16:55 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.111 2005/01/01 21:02:12 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.111.8.1 2005/06/06 12:16:55 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.111 2005/01/01 21:02:12 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.111.8.1 2005/06/06 12:16:55 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