summaryrefslogtreecommitdiff
path: root/lib_ppc/board.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2009-09-01 21:07:08 -0500
committerKumar Gala <galak@kernel.crashing.org>2009-09-08 09:10:04 -0500
commit13d46ab2572c0283d34f93bebc9a41295ef84ca5 (patch)
tree8af64f24f64ac1799a4584ef6f553f4d86469bdc /lib_ppc/board.c
parent9c671e7062720074f894ee329eaa6995b0823727 (diff)
downloadu-boot-imx-13d46ab2572c0283d34f93bebc9a41295ef84ca5.zip
u-boot-imx-13d46ab2572c0283d34f93bebc9a41295ef84ca5.tar.gz
u-boot-imx-13d46ab2572c0283d34f93bebc9a41295ef84ca5.tar.bz2
ppc/8xxx: relocate cpu pointer in global data
Now that we have a pointer to the cpu struct we need to relocate it once we get into ram. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'lib_ppc/board.c')
-rw-r--r--lib_ppc/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index d9a12a1..e8509ee 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -655,6 +655,10 @@ void board_init_r (gd_t *id, ulong dest_addr)
TOTAL_MALLOC_LEN;
#endif
+#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+ gd->cpu += gd->reloc_off;
+#endif
+
#ifdef CONFIG_SERIAL_MULTI
serial_initialize();
#endif