From owner-svn-src-head@FreeBSD.ORG Fri Nov 15 16:37:49 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B9EDFDB; Fri, 15 Nov 2013 16:37:49 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 15EF3255F; Fri, 15 Nov 2013 16:37:49 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1FB6FB9A3; Fri, 15 Nov 2013 11:37:48 -0500 (EST) From: John Baldwin To: "Justin T. Gibbs" Subject: Re: svn commit: r258176 - in head/sys: amd64/amd64 i386/i386 Date: Fri, 15 Nov 2013 11:37:33 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201311151605.rAFG5uUl075789@svn.freebsd.org> In-Reply-To: <201311151605.rAFG5uUl075789@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201311151137.33459.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 15 Nov 2013 11:37:48 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Nov 2013 16:37:49 -0000 On Friday, November 15, 2013 11:05:56 am Justin T. Gibbs wrote: > Author: gibbs > Date: Fri Nov 15 16:05:55 2013 > New Revision: 258176 > URL: http://svnweb.freebsd.org/changeset/base/258176 >=20 > Log: > Fix accounting for hw.realmem on the i386 and amd64 platforms. > =20 > sys/i386/i386/machdep.c: > sys/amd64/amd64/machdep.c: > The value reported by FreeBSD as "real memory" when booting > doesn't match what is later reported by sysctl as hw.realmem. > This is due to the fact that the value printed during the > boot process is fetched from smbios data (when possible), > and accounts for holes in physical memory. On the other > hand, the value of hw.realmem is unconditionally set to be > one larger than the highest page of the physical address > space. > =20 > Fix this by setting hw.realmem to the same value printed > during boot, this makes hw.realmem honour it's name and > account properly for physical memory present in the system. > =20 > Submitted by: Roger Pau Monn=C3=A9 > Reviewed by: gibbs Reviewed by me as well FWIW. =2D-=20 John Baldwin