Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 21:26:41 -0800
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        Randall Stewart <rrs@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r203010 - head/sys/mips/rmi/dev/xlr
Message-ID:  <4B5E7D11.7000602@bluezbox.com>
In-Reply-To: <201001260514.o0Q5EoVg087688@svn.freebsd.org>
References:  <201001260514.o0Q5EoVg087688@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Randall Stewart wrote:
> Author: rrs
> Date: Tue Jan 26 05:14:50 2010
> New Revision: 203010
> URL: http://svn.freebsd.org/changeset/base/203010
>
> Log:
>   1) Make sure static is init'd to 0
>   
Static variables without initializer should be zero-initialized by 
loader. I believe RMI loader
does not zero .bss/.sbss segments so you should do it manually in 
platform_start
to ensure that all static variable are zeroed to prevent side-effects. 
Check platform_start from
ar71xx/ar71xx_machdep.c, for example.



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