From owner-cvs-all Tue Sep 19 18:20:48 2000 Delivered-To: cvs-all@freebsd.org Received: from c3-dbn-96.dial-up.net (c3-dbn-96.dial-up.net [196.33.200.96]) by hub.freebsd.org (Postfix) with ESMTP id 4125C37B422; Tue, 19 Sep 2000 18:20:38 -0700 (PDT) Received: (from rnordier@localhost) by c3-dbn-96.dial-up.net (8.8.7/8.6.12) id DAA11525; Wed, 20 Sep 2000 03:18:58 +0200 (SAST) From: Robert Nordier Message-Id: <200009200118.DAA11525@c3-dbn-96.dial-up.net> Subject: Re: cvs commit: src/sys/kern subr_bus.c In-Reply-To: "from John Baldwin at Sep 19, 2000 05:53:31 pm" To: John Baldwin Date: Wed, 20 Sep 2000 03:18:56 +0200 (SAST) Cc: Robert Nordier , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "Matthew N. Dodd" , Doug Rabson , Bruce Evans , mjacob@feral.com, Peter Wemm X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Baldwin wrote: > On 20-Sep-00 Robert Nordier wrote: > > Peter Wemm wrote: > > > >> Matthew Jacob wrote: > >> > > >> > I'll second this. > >> > >> Well, on the x86 we clear it twice, once in loader and once in locore. I > >> thought it was redundant on the x86 since I thought the new boot2 cleared > >> the extended ELF segment sizes. We do not support a.out kernels anymore > >> so the old bootblocks are not an issue. (the old gas-1.9x cannot assemble > >> the .s files). > >> > >> IMHO we should fix this bug in boot2. It costs ~32 bytes. (ie: reduces > >> from 212 bytes free to 180 bytes free). > > > > If the bss clearing code is actually to be dropped from the x86 > > kernel, I'd be happy for this to change. Otherwise 15% of available > > space is a lot to spend for no actual benefit beyond a kind of > > theoretical tidiness. > > Well, the loader needs its BSS cleared as well, so boot2 can't drop its > BSS clearing code, AFAIK. The issue was adding bss clearing code to boot2, not removing it. > Esp. if the loader switches to being an ELF > binary, which it might in 5.0 current if some people have their way. The loader is already an ELF binary and already gets its bss cleared (by btxldr). The btxld composite object is presently a.out, but changing this to elf won't affect bss as btxld doesn't use bss. -- Robert Nordier rnordier@nordier.com rnordier@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message