Fix a bug where the speculative memory probe wouldn't occur on systems that

report slightly more than 64MB of total memory. This can happen due to the
total being the sum of both base and extended memory.
Submitted by:	Alan Cox <alc@cs.rice.edu>
This commit is contained in:
David Greenman 1997-09-25 15:49:37 +00:00
parent ec175ced96
commit fcc58b9423
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.264 1997/09/21 15:03:57 peter Exp $
* $Id: machdep.c,v 1.265 1997/09/21 21:38:04 gibbs Exp $
*/
#include "apm.h"
@ -1319,7 +1319,7 @@ init386(first)
* the MAXMEM option or the npx0 "msize", then don't do the speculative
* memory probe.
*/
if (Maxmem == 0x4000)
if (Maxmem >= 0x4000)
speculative_mprobe = TRUE;
else
speculative_mprobe = FALSE;

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.264 1997/09/21 15:03:57 peter Exp $
* $Id: machdep.c,v 1.265 1997/09/21 21:38:04 gibbs Exp $
*/
#include "apm.h"
@ -1319,7 +1319,7 @@ init386(first)
* the MAXMEM option or the npx0 "msize", then don't do the speculative
* memory probe.
*/
if (Maxmem == 0x4000)
if (Maxmem >= 0x4000)
speculative_mprobe = TRUE;
else
speculative_mprobe = FALSE;