[U-Boot-Users] [PPC] PLEASE READ - was: [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections

Wolfgang Denk
2008-02-04T19:14:31Z

In message <20080204165640.GC19264@ld0162-tx32.am.freescale.net> you wrote:
> On Mon, Feb 04, 2008 at 12:32:36AM +0100, Wolfgang Denk wrote:
> > So far, it is not clear to me what a better choice for a global
> > register variable could be (i. e. which register we can chose for our
> > purpose without causing the same or other problems.
>
> r2 is generally used for this purpose.

Hm... R2 is documented to be the TOC pointer?

It seems we could use R15, but I hesitate a bit...

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
The flow chart is a most thoroughly oversold piece of program docu-
mentation. -- Frederick Brooks, "The Mythical Man Month"