[U-Boot] [RFC PATCH 2/3] net: add phylib implementation

Mike Frysinger vapier at gentoo.org
Thu Aug 27 07:54:47 CEST 2009


On Thursday 27 August 2009 01:11:32 Stefan Roese wrote:
> On Thursday 27 August 2009 03:55:57 Mike Frysinger wrote:
> > > +int phy_init(void)
> > > +{
> > > +	/* Initialize the list */
> > > +	INIT_LIST_HEAD(&phy_drvs.list);
> >
> > does it really need to be dynamic ?  arent there static initializers so
> > this can be done in .data ?
>
> Using static initializers fails on PPC because of the somewhat broken
> relocation. So this dynamic implementation is the preferred version, at
> least for PPC people.

so the ppc port cant use the .data section at all ?  that doesnt sound correct 
to me.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090827/f43f1682/attachment.pgp 


More information about the U-Boot mailing list