[U-Boot-Users] [PATCH] PPC: Use r2 instead of r29 as global data pointer

Wolfgang Denk wd at denx.de
Sun Feb 17 23:05:06 CET 2008


Dear Rafal,

in message <47B85ECF.5080207 at semihalf.com> you wrote:
> 
> How about switching r14 (GOT ptr) to r13 in a similar way? Quite like the r2,
> r13 is a dedicated register (small data area purposes) and it would let us
> avoid using the -ffixed completely.

I have to admit that I don;t understand enough  of  these  things  to
judge if R13 (listed as "small data area pointer") is really free for
use for our purposes.

> I can provide patches, but let me know your thoughts first.

I guess you already ran some tests? If you are sure about this, and if
it really works, then please submit your patches!

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
THIS IS A 100% MATTER  PRODUCT:  In  the  Unlikely  Event  That  This
Merchandise  Should  Contact  Antimatter  in Any Form, a Catastrophic
Explosion Will Result.




More information about the U-Boot mailing list