From owner-cvs-all Mon Sep 18 7:55:32 2000 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id AD1D037B424; Mon, 18 Sep 2000 07:55:27 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id BAA25180; Tue, 19 Sep 2000 01:55:11 +1100 Date: Tue, 19 Sep 2000 01:55:08 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Matthew Jacob Cc: "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 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). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message