]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Don't set gd->reloc_off if relocation of .fixup works correctly
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 3 Jul 2007 06:34:19 +0000 (00:34 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jul 2007 23:07:21 +0000 (01:07 +0200)
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
lib_ppc/board.c

index 310c1de3fe5957accb1287d627dfc49d0c0cf0bd..8bb885d4c9b70b780b04f5fd9c7f0e0e1852593c 100644 (file)
@@ -620,7 +620,12 @@ void board_init_r (gd_t *id, ulong dest_addr)
        bd = gd->bd;
 
        gd->flags |= GD_FLG_RELOC;      /* tell others: relocation done */
+
+#if defined(CONFIG_RELOC_FIXUP_WORKS)
+       gd->reloc_off = 0;
+#else
        gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+#endif
 
 #ifdef CONFIG_SERIAL_MULTI
        serial_initialize();