summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHugh Graham <hugh@cvs.openbsd.org>2001-12-22 12:01:54 +0000
committerHugh Graham <hugh@cvs.openbsd.org>2001-12-22 12:01:54 +0000
commitcdbf8c6e07ec61300bbfe5d5b0644e4dfc603137 (patch)
tree5986e112f0078cebff097034b79fb58e3e0ec2e0 /sys
parenteb78418217a02e517a60da5262664deadd9d4916 (diff)
Correct res count. Based on fix in NetBSD.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/vax/vax/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c
index 09602b5ff57..a85ace5b233 100644
--- a/sys/arch/vax/vax/pmap.c
+++ b/sys/arch/vax/vax/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.28 2001/12/08 02:24:07 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.29 2001/12/22 12:01:53 hugh Exp $ */
/* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden.
@@ -755,11 +755,11 @@ if (startpmapdebug)
pv->pv_next = tmp;
}
splx(s);
+ pmap->pm_stats.resident_count++;
} else {
/* No mapping change, just flush the TLB; necessary? */
mtpr(0, PR_TBIA);
}
- pmap->pm_stats.resident_count++;
if (flags & VM_PROT_READ) {
pv->pv_attr |= PG_V;