From 690db31d04a69107e8a371efbdd4917d99307aec Mon Sep 17 00:00:00 2001 From: John Dyson Date: Wed, 11 Sep 1996 03:46:41 +0000 Subject: [PATCH] A minor fix to the new pmap code. This might not fix the global problems with the last major pmap commits. --- sys/amd64/amd64/pmap.c | 4 ++-- sys/i386/i386/pmap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index bc4c6c2faf9..97620bd63d9 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -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 diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index bc4c6c2faf9..97620bd63d9 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -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