From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Harvey Date: Wed, 6 Jul 2011 16:58:57 -0400 Subject: [U-Boot] [PATCH 2/5] Added extra documentation about how the relocation address to RAM is picked for ARM. In-Reply-To: <20110704194324.321C015794D9@gemini.denx.de> References: <20110704174348.GC3016@harvey-pc.matrox.com> <20110704194324.321C015794D9@gemini.denx.de> Message-ID: <20110706205857.GB2168@harvey-pc.matrox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jul 04, 2011 at 09:43:24PM +0200, Wolfgang Denk wrote: > Dear Christopher Harvey, > > In message <20110704174348.GC3016@harvey-pc.matrox.com> you wrote: > > Signed-off-by: Christopher Harvey > > --- > > doc/README.arm-relocation | 9 ++++++++- > > 1 files changed, 8 insertions(+), 1 deletions(-) > > Please let's stop with ARM specific documatation of things that are > considered generic. > > > +The code that picks the location in RAM for ARM can be found in the > > +arch/arm/lib/board.c file under the board_init_f function. > > under the function? Who dropped that code? :-) s/under/in/ > > Also delete "for ARM", and s/arm//. This is not ARM specific. > I don't understand, I found the following snippet in arch/arm/lib/board.c --addr defined and set here-- gd->relocaddr = addr; gd->start_addr_sp = addr_sp; gd->reloc_off = addr - _TEXT_BASE; debug ("relocation Offset is: %08lx\n", gd->reloc_off); memcpy (id, (void *)gd, sizeof (gd_t)); relocate_code (addr_sp, id, addr); /* NOTREACHED - relocate_code() does not return */ Running grep -R gd->relocaddr *, I found similar assignments for various architectures. ... [snip] ... > > Best regards, > > Wolfgang Denk > Thanks for the clarification, -Chris