[U-Boot] [RFC PATCH 2/3] net: add phylib implementation
Stefan Roese
sr at denx.de
Thu Aug 27 07:11:32 CEST 2009
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.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
More information about the U-Boot
mailing list