From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 04 Feb 2008 13:17:16 -0600 Subject: [U-Boot-Users] [PPC] PLEASE READ - was: [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections In-Reply-To: <20080204191431.3384224D1D@gemini.denx.de> References: <20080204191431.3384224D1D@gemini.denx.de> Message-ID: <47A764BC.3000303@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > 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? 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