From owner-cvs-all Mon Sep 18 13:51:17 2000 Delivered-To: cvs-all@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id 0A31837B422; Mon, 18 Sep 2000 13:51:12 -0700 (PDT) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 13b7sb-000Fw0-0A; Mon, 18 Sep 2000 20:51:10 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id VAA39449; Mon, 18 Sep 2000 21:53:27 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 18 Sep 2000 21:51:05 +0100 (BST) From: Doug Rabson To: Bruce Evans Cc: Matthew Jacob , "Matthew N. Dodd" , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern subr_bus.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 19 Sep 2000, Bruce Evans wrote: > On Mon, 18 Sep 2000, Matthew Jacob wrote: > > > Yeah, I wondered about that too. I thought > > > > int foo; > > > > and > > > > int foo=0; > > > > were supposed to be the same. Is the kernel now forgetting to clear bss? > > Same for the C abstract machine, which we mostly depend on in the > kernel (although the kernel is not entirely implementable in C). Of > course, it is an implementation detail that the explicit initialization > puts the variable in the data section instead of in the bss, at least > for gcc on i386's. > > The bss clearing code hasn't changed for years on i386's. I can't see > where the bss is cleared on alphas (alpha_init is called very early > in locore.s). The bss is cleared by the loader for both x86 and alpha. I guess x86 clears it again in locore but it doesn't need to. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8348 3944 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message