[U-Boot] [PATCH v2 4/4] arm: factorize relocate_code routine

Benoît Thébaudeau
2013-05-15T16:36:05Z

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
> <albert.u.boot@aribaud.net> 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.

Best regards,
Beno?t