[PATCH] powerpc: zero out BSS for all platforms
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Oct 11 19:48:56 EST 2005
On Tue, 2005-10-11 at 11:30 +0200, Olaf Hering wrote:
> On Tue, Oct 11, Benjamin Herrenschmidt wrote:
>
> > On Mon, 2005-10-10 at 14:51 -0500, Kumar Gala wrote:
> > > We need to ensure that the BSS is zeroed out for all platforms.
> > > Currently only prom_init.c was clearlying out the BSS which only works
> > > for PPC_OF platforms.
> > >
> > > Signed-off-by: Kumar K. Gala <kumar.gala at freescale.com>
> >
> > You need to make absolutely certain that we have not written anything to
> > the bss yet though... Is that the case ? I usually prefer doing the
> > zero'ing in assembly :)
>
> early_init is called so early, its almost like asm code.
Yah, as long as that stuff is still separate between ppc32 and ppc64,
that's fine. We'll have to be careful with iSeries once we do the
merge :)
Ben.
More information about the Linuxppc-dev
mailing list