Limit the scan for preloading pte's to the end of an object.

This commit is contained in:
John Dyson 1996-06-25 00:39:21 +00:00
parent f0e2953e5e
commit cb87c9be58
2 changed files with 8 additions and 2 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.105 1996/06/17 03:35:23 dyson Exp $ * $Id: pmap.c,v 1.106 1996/06/18 01:22:06 bde Exp $
*/ */
/* /*
@ -1768,6 +1768,9 @@ pmap_object_init_pt(pmap, addr, object, pindex, size, limit)
return; return;
} }
if (psize + pindex > object->size)
psize = object->size - pindex;
/* /*
* if we are processing a major portion of the object, then scan the * if we are processing a major portion of the object, then scan the
* entire thing. * entire thing.

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.105 1996/06/17 03:35:23 dyson Exp $ * $Id: pmap.c,v 1.106 1996/06/18 01:22:06 bde Exp $
*/ */
/* /*
@ -1768,6 +1768,9 @@ pmap_object_init_pt(pmap, addr, object, pindex, size, limit)
return; return;
} }
if (psize + pindex > object->size)
psize = object->size - pindex;
/* /*
* if we are processing a major portion of the object, then scan the * if we are processing a major portion of the object, then scan the
* entire thing. * entire thing.