diff options
author | dg <dg@FreeBSD.org> | 1997-09-25 15:49:37 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-09-25 15:49:37 +0000 |
commit | 1182dc26f77df6ab88e063d5c35fd8011300cd53 (patch) | |
tree | ec65c1c1418014b14d5ee86f54c534964ee44f26 /sys | |
parent | e22797c8f46454f7af0ef4b72936fbd735c8733d (diff) | |
download | FreeBSD-src-1182dc26f77df6ab88e063d5c35fd8011300cd53.zip FreeBSD-src-1182dc26f77df6ab88e063d5c35fd8011300cd53.tar.gz |
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>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index edf7686..602d75c 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index edf7686..602d75c 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -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; |