Fix for the problem stated below by Tor Egge:

(from: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=832566+0+ \
       current/freebsd-current)

  "Too many pages were prefaulted in pmap_object_init_pt, thus
   the wrong physical page was entered in the pmap for the virtual
   address where the .dynamic section was supposed to be."

Submitted by:	tegge
Approved by:	tegge's patches never fail
This commit is contained in:
Andrew R. Reiter 2002-06-27 06:34:03 +00:00
parent 09122f6371
commit c6d84b4d4b
2 changed files with 2 additions and 2 deletions

View File

@ -2493,7 +2493,7 @@ retry:
((objpgs > 0) && (p != NULL));
p = TAILQ_NEXT(p, listq)) {
if (p->pindex < pindex || p->pindex - pindex > psize) {
if (p->pindex < pindex || p->pindex - pindex >= psize) {
continue;
}
tmpidx = p->pindex - pindex;

View File

@ -2493,7 +2493,7 @@ retry:
((objpgs > 0) && (p != NULL));
p = TAILQ_NEXT(p, listq)) {
if (p->pindex < pindex || p->pindex - pindex > psize) {
if (p->pindex < pindex || p->pindex - pindex >= psize) {
continue;
}
tmpidx = p->pindex - pindex;