Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2001 16:01:02 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Alfred Perlstein <bright@mu.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern vfs_subr.c 
Message-ID:  <20011229000102.E137D38CC@overcee.netplex.com.au>
In-Reply-To: <xzpy9jnm3ok.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> Alfred Perlstein <bright@mu.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011229000102.E137D38CC>