[U-Boot] RFC: Aligning arch initialisation sequences

Wolfgang Denk wd at denx.de
Sun Nov 14 21:42:23 CET 2010


Dear Albert ARIBAUD,

In message <4CE04241.7070407 at free.fr> you wrote:
> 
>  > OK, this is not even 0.1% of the size, but anyway...
> 
> If the difference in size is marginal, then I prefer the implementation 
> that has the least 'quirks' and most closely complies with EABI/AAPCS.

Yes, I agree. On ARM the global pointermethod has both the advantage
of being cleaner and giving slightly smaller code.

> BTW your quick'n'dirty test puts GD at a fixed location identical for 
> code running before and after relocation, right? But do we not change 
> the stack location?

Yes, we do. I just wanted to compile it for the code size difference;
I did not attempt to make a perfect patch yet :-)

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
In an infinite universe all things are possible, including the possi-
bility that the universe does not exist.
                        - Terry Pratchett, _The Dark Side of the Sun_


More information about the U-Boot mailing list