提交 f82b3b63 编写于 作者: G Grant Likely 提交者: Wolfgang Denk

Don't set gd->reloc_off if relocation of .fixup works correctly

Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 e1a6144c
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册