diff options
author | dyson <dyson@FreeBSD.org> | 1996-09-11 03:46:41 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-09-11 03:46:41 +0000 |
commit | ed2deb3bea568e00be2a6061a0dda6d481e002c0 (patch) | |
tree | a786e5770e3f92a660b443676442edf879121e26 | |
parent | 4ff1c6aa9b282c12f466dd45d5af1a5bfdf31ae1 (diff) | |
download | FreeBSD-src-ed2deb3bea568e00be2a6061a0dda6d481e002c0.zip FreeBSD-src-ed2deb3bea568e00be2a6061a0dda6d481e002c0.tar.gz |
A minor fix to the new pmap code. This might not fix the global problems
with the last major pmap commits.
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 | ||||
-rw-r--r-- | 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 bc4c6c2..97620bd 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 bc4c6c2..97620bd 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 |