From: Grant Likely Date: Tue, 03 Jul 2007 00:34:19 -0600 Subject: [U-Boot-Users] [PATCH 18/24] Don't set gd->reloc_off if relocation of .fixup works correctly In-Reply-To: <20070703063102.26530.49614.stgit@trillian.secretlab.ca> References: <20070703063102.26530.49614.stgit@trillian.secretlab.ca> Message-ID: <20070703063419.26530.85594.stgit@trillian.secretlab.ca> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Grant Likely Signed-off-by: Grant Likely --- lib_ppc/board.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib_ppc/board.c b/lib_ppc/board.c index c4fc580..208e24b 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -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();