diff options
author | Richard Retanubun <RichardRetanubun@RuggedCom.com> | 2010-01-15 18:06:06 +0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-03-12 01:49:16 +0300 |
commit | 4b99327a4121a28d2bdb2c2b841f5d97931ae905 (patch) | |
tree | a55f0661809ca14930ad43beea6660a45cb1e27a /lib_ppc | |
parent | 8c4444ff5e1d8e9fd1a847a2fb096aa9aff66f85 (diff) | |
download | u-boot-4b99327a4121a28d2bdb2c2b841f5d97931ae905.tar.xz |
PPC: Record U-Boot's relocated address in RAM and show in bdinfo.
This patch uses gd->relocaddr variable to store uboot's relocated
address in RAM and shows it in bdinfo command.
This patch moves CONFIG_AMIGAONEG3SE style copying of the address
in board_init_f to just before relocation is actually done.
Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Tested-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/board.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 2889b2c2c5..a30acee4fe 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -477,10 +477,6 @@ void board_init_f (ulong bootflag) debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr); -#ifdef CONFIG_AMIGAONEG3SE - gd->relocaddr = addr; -#endif - /* * reserve memory for malloc() arena */ @@ -612,6 +608,8 @@ void board_init_f (ulong bootflag) WATCHDOG_RESET(); + gd->relocaddr = addr; /* Record relocation address, useful for debug */ + memcpy (id, (void *)gd, sizeof (gd_t)); relocate_code (addr_sp, id, addr); |