[U-Boot] use of global static variables?

Wolfgang Denk wd at denx.de
Fri May 21 16:10:01 CEST 2010


Dear Kumar Gala,

In message <BF924A4F-6A8D-43C0-9B7B-58D1C6D3B850 at kernel.crashing.org> you wrote:
> With the relocation changes are global statics variables ok if we
> know code is called after relocation?

They have always been ok (as far as global variables can be ok) if
you were aware of their restrictions before relocation.


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
It is common sense to take a method and try it. If it fails, admit it
frankly and try another. But above all, try something.
                                              - Franklin D. Roosevelt


More information about the U-Boot mailing list