public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] question on do_bootm()
@ 2009-06-17  1:01 J.Hwan.Kim
  0 siblings, 0 replies; only message in thread
From: J.Hwan.Kim @ 2009-06-17  1:01 UTC (permalink / raw)
  To: u-boot

Hi, everyone

I have a question on relocation of boot function table in do_bootm().
The boot function table boot_os[] has a pointer of functions such as
do_bootm_linux().
I think the address of the symbol "do_bootm_linux" has relocated address
by linker.
But there is address-modifying routine in do_bootm()
if (!relocated) {
int i;
for (i = 0; i < ARRAY_SIZE(boot_os); i++)
boot_os[i] += gd->reloc_off;
relocated = 1;
}

Why the routine above is needed?
Isn't the addresses of boot functions already relocated one?

Thanks in advance.

Regards,
J.H.Kim

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-17  1:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17  1:01 [U-Boot] question on do_bootm() J.Hwan.Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox