[U-Boot-Users] [PATCH] Fixup relocation patch.]
Joakim Tjernlund
joakim.tjernlund at transmode.se
Wed Feb 14 13:07:02 CET 2007
On Wed, 2007-02-14 at 12:27 +0100, Txema Lopez wrote:
> Joakim Tjernlund wrote:
>
> >Hi Txema
> >
> >Can you give an example on how to change these references to
> >TEXT_BASE/CFG_MONITOR_BASE?
> >
> > Regards
> > Jocke
> >
> >
> Hi Jocke,
>
> An example in C code in the board_init_f() function.
>
> #ifdef CFG_BOOT_RELOCATABLE
> len = (ulong)&_end - (ulong)&_start ;
> #else
> len = (ulong)&_end - CFG_MONITOR_BASE;
> #endif
>
> An example in assembler in the relocate_code function.
>
> #ifdef CFG_BOOT_RELOCATABLE
> lwz r4, GOT(_start)
> #else
> lis r4, CFG_MONITOR_BASE at h /* Source Address */
> ori r4, r4, CFG_MONITOR_BASE at l
> #endif
>
Thanks, now I get it.
>
> Anyway, if you are very interested in it I can made a patch for the
> 1.1.6 version (but merged with our custom board code) and send it to you
> out of the list to take a look.
Yes I am interested, but I am leaving for a 2 week vacation soon, so I
will get back to you about this.
Thanks again
Jocke
>
> Best regards,
> Txema.
More information about the U-Boot
mailing list