From 931bde7f72e7101034358d37e6b3fd65db3070ca Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 18 Dec 1994 03:36:27 +0000 Subject: [PATCH] Check for PG_FAKE too in pmap_object_init_pt. --- sys/amd64/amd64/pmap.c | 6 +++--- sys/i386/i386/pmap.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index c279f9004f18..0dcb9f4426c7 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.36 1994/09/16 13:33:26 davidg Exp $ + * $Id: pmap.c,v 1.37 1994/10/08 22:19:49 phk Exp $ */ /* @@ -1475,7 +1475,7 @@ pmap_object_init_pt(pmap, addr, object, offset, size) continue; } - if ((p->flags & (PG_BUSY|PG_FICTITIOUS)) == 0 ) { + if ((p->flags & (PG_BUSY|PG_FICTITIOUS|PG_FAKE)) == 0 ) { vm_page_hold(p); v = i386_trunc_page(((vm_offset_t)vtopte( addr+tmpoff))); /* a fault might occur here */ @@ -1493,7 +1493,7 @@ pmap_object_init_pt(pmap, addr, object, offset, size) for(tmpoff = 0; tmpoff < size; tmpoff += NBPG) { p = vm_page_lookup(object, tmpoff + offset); if (p) { - if( (p->flags & (PG_BUSY|PG_FICTITIOUS)) == 0) { + if( (p->flags & (PG_BUSY|PG_FICTITIOUS|PG_FAKE)) == 0) { vm_page_hold(p); v = i386_trunc_page(((vm_offset_t)vtopte( addr+tmpoff))); /* a fault might occur here */ diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index c279f9004f18..0dcb9f4426c7 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.36 1994/09/16 13:33:26 davidg Exp $ + * $Id: pmap.c,v 1.37 1994/10/08 22:19:49 phk Exp $ */ /* @@ -1475,7 +1475,7 @@ pmap_object_init_pt(pmap, addr, object, offset, size) continue; } - if ((p->flags & (PG_BUSY|PG_FICTITIOUS)) == 0 ) { + if ((p->flags & (PG_BUSY|PG_FICTITIOUS|PG_FAKE)) == 0 ) { vm_page_hold(p); v = i386_trunc_page(((vm_offset_t)vtopte( addr+tmpoff))); /* a fault might occur here */ @@ -1493,7 +1493,7 @@ pmap_object_init_pt(pmap, addr, object, offset, size) for(tmpoff = 0; tmpoff < size; tmpoff += NBPG) { p = vm_page_lookup(object, tmpoff + offset); if (p) { - if( (p->flags & (PG_BUSY|PG_FICTITIOUS)) == 0) { + if( (p->flags & (PG_BUSY|PG_FICTITIOUS|PG_FAKE)) == 0) { vm_page_hold(p); v = i386_trunc_page(((vm_offset_t)vtopte( addr+tmpoff))); /* a fault might occur here */