From owner-cvs-src-old@FreeBSD.ORG Mon Mar 28 06:35:36 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D0261065677 for ; Mon, 28 Mar 2011 06:35:36 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA3F8FC12 for ; Mon, 28 Mar 2011 06:35:36 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2S6ZarB075274 for ; Mon, 28 Mar 2011 06:35:36 GMT (envelope-from alc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2S6ZauJ075273 for cvs-src-old@freebsd.org; Mon, 28 Mar 2011 06:35:36 GMT (envelope-from alc@repoman.freebsd.org) Message-Id: <201103280635.p2S6ZauJ075273@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to alc@repoman.freebsd.org using -f From: Alan Cox Date: Mon, 28 Mar 2011 06:35:17 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 machdep.c src/sys/conf ldscript.amd64 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 06:35:36 -0000 alc 2011-03-28 06:35:17 UTC FreeBSD src repository Modified files: sys/amd64/amd64 machdep.c sys/conf ldscript.amd64 Log: SVN rev 220090 on 2011-03-28 06:35:17Z by alc The new binutils has correctly redefined MAXPAGESIZE on amd64 as 0x200000 instead of 0x100000. As a side effect, an amd64 kernel now loads at physical address 0x200000 instead of 0x100000. This is probably for the best because it avoids the use of a 2MB page mapping for the first 1MB of the kernel that also spans the fixed MTRRs. However, getmemsize() still thinks that the kernel loads at 0x100000, and so the physical memory between 0x100000 and 0x200000 is lost. Fix this problem by replacing the hard-wired constant in getmemsize() by a symbol "kernphys" that is defined by the linker script. In collaboration with: kib Revision Changes Path 1.746 +6 -1 src/sys/amd64/amd64/machdep.c 1.11 +2 -1 src/sys/conf/ldscript.amd64