]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r196412
authorjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 20 Aug 2009 23:04:21 +0000 (23:04 +0000)
committerjkim <jkim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 20 Aug 2009 23:04:21 +0000 (23:04 +0000)
commit51dd81242cacd8b1f4bb88fd10e4e69ac5221c69
treeb5fe96e138b6fd78232f4a807e550fa759a56967
parent81833d0ddcb9a55df10643eb6c23eabaf2139542
MFC: r196412

Check whether the SMBIOS reports reasonable amount of memory.  If it is
less than "avail memory", fall back to Maxmem to avoid user confusion.
We use SMBIOS information to display "real memory" since r190599 but
some broken SMBIOS implementation reported only half of actual memory.

Tested by: bz
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@196413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/amd64/machdep.c
sys/i386/i386/machdep.c