[U-Boot] [PATCH 1/5] Add basic errno support.
Wolfgang Denk
wd at denx.de
Sun Jul 18 15:03:30 CEST 2010
Dear Jerry Van Baren,
In message <4C42F8DE.5040009 at gmail.com> you wrote:
>
> > drop the "= 0" so that errno ends up in the bss ?
> > -mike
>
> Is this going to be a problem during early startup (pre-relocation) vs.
> normal running? Pre-relocation, we only have a temporary stack and RAM
> is not set up initially.
>
> I have not looked at when RAM gets initialized vs. when env. variables
> get used. It is probably OK. Wolfgang?
AFAICT the relevant code runs all only after relocation to RAM, i. e.
the use of errno (whether in BSS or not) should be no problem.
But you are right - using it before relocation will not work as is. We
could make it a global data entry, if needed.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Free markets select for winning solutions." - Eric S. Raymond
More information about the U-Boot
mailing list