Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/arch/pc532/pc532 Pull up revision 1.77 (requested by ...
details: https://anonhg.NetBSD.org/src/rev/ceb135e7df21
branches: netbsd-3
changeset: 576007:ceb135e7df21
user: tron <tron%NetBSD.org@localhost>
date: Mon Jun 06 12:17:29 2005 +0000
description:
Pull up revision 1.77 (requested by chs in ticket #424):
in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.
diffstat:
sys/arch/pc532/pc532/pmap.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 141f3fda8ce8 -r ceb135e7df21 sys/arch/pc532/pc532/pmap.c
--- a/sys/arch/pc532/pc532/pmap.c Mon Jun 06 12:17:17 2005 +0000
+++ b/sys/arch/pc532/pc532/pmap.c Mon Jun 06 12:17:29 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.75 2005/01/01 21:00:06 yamt Exp $ */
+/* $NetBSD: pmap.c,v 1.75.8.1 2005/06/06 12:17:29 tron Exp $ */
/*
*
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.75 2005/01/01 21:00:06 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.75.8.1 2005/06/06 12:17:29 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2673,6 +2673,11 @@
npte |= PG_u;
else if (va < VM_MAX_ADDRESS)
npte |= (PG_u | PG_RW); /* XXXCDC: no longer needed? */
+ if (flags & VM_PROT_ALL) {
+ npte |= PG_U;
+ if (flags & VM_PROT_WRITE)
+ npte |= PG_M;
+ }
ptes[ns532_btop(va)] = npte; /* zap! */
Home |
Main Index |
Thread Index |
Old Index