Merge from FreeBSD, RELENG_4 branch, revision 1.250.2.26.
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 2 Jun 2004 07:34:29 +0000 (07:34 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 2 Jun 2004 07:34:29 +0000 (07:34 +0000)
commit6302a396006d3cd467c19c084078ec62ce889de8
tree76d09d61e15850e6b2ffba00c0a932059cf46088
parent313278cec375b521d382348848cfb8092b19bfef
Merge from FreeBSD, RELENG_4 branch, revision 1.250.2.26.

--- original commit message ---
  Log:
  There is a comma missing in the table initializing the
  pmap_prefault_pageorder array.  This has two effects:

  1. The resulting bogus contents of the array thwarts part of
  the optimization effect pmap_prefault() is supposed to have.

  2. The resulting array is only 7 elements long (auto-sized), while
  pmap_prefault() expects it to be the intended 8 elements.  So
  this function in fact accesses memory beyond the end of the array.
  Fortunately though, if the data at this location is out of bounds
  it will be ignored.

  This bug dates back more than 6 years.  It has been introduced
  in revision 1.178.

  Submitted by:   Uwe Doering <gemini@geminix.org>
  PR:        67460
--- original commit message ---
sys/i386/i386/pmap.c
sys/platform/pc32/i386/pmap.c