From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 15 May 2013 19:55:31 +0200 Subject: [U-Boot] [PATCH v2 4/4] arm: factorize relocate_code routine In-Reply-To: <409609543.846940.1368635765306.JavaMail.root@advansee.com> References: <1368223012-17609-1-git-send-email-albert.u.boot@aribaud.net> <1368525030-5162-2-git-send-email-albert.u.boot@aribaud.net> <1368525030-5162-3-git-send-email-albert.u.boot@aribaud.net> <1368525030-5162-4-git-send-email-albert.u.boot@aribaud.net> <1368525030-5162-5-git-send-email-albert.u.boot@aribaud.net> <1489195069.818131.1368547310358.JavaMail.root@advansee.com> <20130515093137.5c31a529@lilith> <20130515103000.0868d5df@lilith> <409609543.846940.1368635765306.JavaMail.root@advansee.com> Message-ID: <20130515195531.379a4963@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Beno?t, On Wed, 15 May 2013 18:36:05 +0200 (CEST), Beno?t Th?baudeau wrote: > Hi Albert, > > On Wednesday, May 15, 2013 10:30:00 AM, Albert ARIBAUD wrote: > > On Wed, 15 May 2013 09:31:37 +0200, Albert ARIBAUD > > wrote: > > > > > Then I should add =relocate_code to r3, not =_start, and also -- as r9 > > > is not the right offset here -- compute r7 as the delta between the > > > link-time =_start and the run-time relocate_code (r7 becomes useless > > > once R10, r2 and r3 are fixed). > > > > I badly need a coffee break... Make this "r7 equal to =relocate_code", > > simply. > > Or "adr r7, relocate_code" for the same result in order to avoid using the > literal pool when useless. Correct. That'll be in v3. > Best regards, > Beno?t Amicalement, -- Albert.