diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-10-11 11:40:18 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-10-11 11:40:18 +0000 |
commit | 9080aa56d57ce5bd90cb8ba898ff64129d53b846 (patch) | |
tree | 1945e1e4bb16f047fab5739d47c51a38d34088d8 /sys | |
parent | 5a3f5c5a51b5f93c61d1511bc5c5ade62e1e0711 (diff) |
make sure to set PG_W on the pte!
also invalidate tb entries at certain points
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index b1a8974b201..0390dc4d539 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.11 2000/04/27 01:10:13 bjc Exp $ */ +/* $OpenBSD: pmap.c,v 1.12 2000/10/11 11:40:17 bjc 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. @@ -750,6 +750,7 @@ if (startpmapdebug) /* No mapping change. Can this happen??? */ if (newpte == oldpte) { RECURSEEND; + mtpr(0, PR_TBIA); /* Always; safety belt */ return; } @@ -787,6 +788,9 @@ if (startpmapdebug) } pmap->pm_stats.resident_count++; + if(wired) + newpte |= PG_W; + if (access_type & VM_PROT_READ) { pv->pv_attr |= PG_V; newpte |= PG_V; @@ -811,6 +815,7 @@ if (startpmapdebug) if (pventries < 10) more_pventries(); + mtpr(0, PR_TBIA); /* Always; safety belt */ return; } |