A minor fix to the new pmap code. This might not fix the global problems

with the last major pmap commits.
This commit is contained in:
John Dyson 1996-09-11 03:46:41 +00:00
parent 172e05288c
commit 690db31d04
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.115 1996/09/08 16:57:34 dyson Exp $
* $Id: pmap.c,v 1.116 1996/09/08 20:44:10 dyson Exp $
*/
/*
@ -714,7 +714,7 @@ pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m) {
*/
pmap->pm_pdir[m->pindex] = 0;
--pmap->pm_stats.resident_count;
if ((((unsigned)pmap->pm_pdir[PTDPTDI]) & PG_FRAME) !=
if ((((unsigned)pmap->pm_pdir[PTDPTDI]) & PG_FRAME) ==
(((unsigned) PTDpde) & PG_FRAME)) {
/*
* Do a pmap_update to make the invalidated mapping

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.115 1996/09/08 16:57:34 dyson Exp $
* $Id: pmap.c,v 1.116 1996/09/08 20:44:10 dyson Exp $
*/
/*
@ -714,7 +714,7 @@ pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m) {
*/
pmap->pm_pdir[m->pindex] = 0;
--pmap->pm_stats.resident_count;
if ((((unsigned)pmap->pm_pdir[PTDPTDI]) & PG_FRAME) !=
if ((((unsigned)pmap->pm_pdir[PTDPTDI]) & PG_FRAME) ==
(((unsigned) PTDpde) & PG_FRAME)) {
/*
* Do a pmap_update to make the invalidated mapping