From owner-cvs-src@FreeBSD.ORG Tue Jul 29 14:57:02 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EC4737B401; Tue, 29 Jul 2003 14:57:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CEF443F75; Tue, 29 Jul 2003 14:57:02 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6TLv20U066077; Tue, 29 Jul 2003 14:57:02 -0700 (PDT) (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6TLv1VE066076; Tue, 29 Jul 2003 14:57:01 -0700 (PDT) Message-Id: <200307292157.h6TLv1VE066076@repoman.freebsd.org> From: Bruce Evans Date: Tue, 29 Jul 2003 14:57:01 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 locore.s X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 21:57:03 -0000 bde 2003/07/29 14:57:01 PDT FreeBSD src repository Modified files: sys/i386/i386 locore.s Log: Restored clearing of the bss, except for putting it in a correct place with up to date comments. This fixes booting kernels with boot2 (except for loss of the features provided by loader) and is suitable for MFC. Contrary to the old comments, most loaders don't clear the bss. biosboot lost clearing of the bss in a code crunch in 1997, and boot2 never did it. kan didn't notice the problem with gcc-3.3 putting variables that are initialized to 0 in the bss until after committing gcc-3.3 because he was already using essentially this patch. Before gcc-3.3, only the non-critical `bootdev' variable was clobbered by clearing the bss. MFC after: 3 days Revision Changes Path 1.174 +18 -9 src/sys/i386/i386/locore.s