Wolfgang Denk wrote:
> In message <[EMAIL PROTECTED]> 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?

The ABI document says, "Register r2 is reserved for system use and 
should not be changed by application code."

Linux uses it for the "current" pointer.

-Scott

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to