From owner-cvs-all Fri Dec 28 16: 1:11 2001 Delivered-To: cvs-all@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 75C4837B41A; Fri, 28 Dec 2001 16:01:07 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20011229000107.LQTV20122.rwcrmhc53.attbi.com@peter3.wemm.org>; Sat, 29 Dec 2001 00:01:07 +0000 Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id fBT013s10029; Fri, 28 Dec 2001 16:01:03 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id E137D38CC; Fri, 28 Dec 2001 16:01:02 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Dag-Erling Smorgrav Cc: Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_subr.c In-Reply-To: Date: Fri, 28 Dec 2001 16:01:02 -0800 From: Peter Wemm Message-Id: <20011229000102.E137D38CC@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: > Alfred Perlstein writes: > > find sys -type f -name "*.c" | > > while read i ; do > > sed 's/\(^[a-z].*\).*=.*0;/\1;/' < $i > $i.new > > mv $i.new $i > > done > > cvs commit -m "Peter made me do it" > > perl -p -i -e 'while (s/^(\w.*)=\s+0([,;].*)$/$1$2/) { }' \ > $(find sys -type f -name "*.c") > cvs commit -m "Peter made me do it" > > (your version will break variables that are initialized to e.g. 10) I seem to recall that some early-boot stuff may depend on certain variables being zeroed explicitly since they were being accessed before locore zeroed its bss section when booting from boot2 (rather than loader). These may have been confined within the assembler .s files though. Anyway, if somebody is going to do this, be careful not to go too close to locore/machdep/early startup code without carefully checking the implications. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message