From owner-svn-src-head@FreeBSD.ORG Tue Mar 6 20:45:14 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DD37106566B; Tue, 6 Mar 2012 20:45:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA9A8FC1C; Tue, 6 Mar 2012 20:45:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q26KjD5l056869; Tue, 6 Mar 2012 20:45:13 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q26KjDR8056867; Tue, 6 Mar 2012 20:45:13 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201203062045.q26KjDR8056867@svn.freebsd.org> From: John Baldwin Date: Tue, 6 Mar 2012 20:45:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232623 - head/sys/boot/i386/boot2 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 06 Mar 2012 20:45:14 -0000 Author: jhb Date: Tue Mar 6 20:45:13 2012 New Revision: 232623 URL: http://svn.freebsd.org/changeset/base/232623 Log: Add a note to clarify why we create a relocated copy of boot1 in lower memory. Modified: head/sys/boot/i386/boot2/boot1.S Modified: head/sys/boot/i386/boot2/boot1.S ============================================================================== --- head/sys/boot/i386/boot2/boot1.S Tue Mar 6 20:37:06 2012 (r232622) +++ head/sys/boot/i386/boot2/boot1.S Tue Mar 6 20:45:13 2012 (r232623) @@ -125,7 +125,10 @@ main: cld # String ops inc mov $start,%sp # stack /* * Relocate ourself to MEM_REL. Since %cx == 0, the inc %ch sets - * %cx == 0x100. + * %cx == 0x100. Note that boot1 does not use this relocated copy + * of itself while loading boot2; however, BTX reclaims the memory + * used by boot1 during its initialization. As a result, boot2 uses + * xread from the relocated copy. */ mov %sp,%si # Source mov $MEM_REL,%di # Destination