* [U-Boot] [PATCH] ppc/8xxx: relocate cpu pointer in global data
@ 2009-09-02 2:09 Kumar Gala
2009-09-02 2:14 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Gala @ 2009-09-02 2:09 UTC (permalink / raw)
To: u-boot
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>
---
lib_ppc/board.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 9faf7f2..6e6483b 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -686,6 +686,10 @@ void board_init_r (gd_t *id, ulong dest_addr)
gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
#endif
+#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+ gd->cpu += gd->reloc_off;
+#endif
+
#ifdef CONFIG_SERIAL_MULTI
serial_initialize();
#endif
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-02 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 2:09 [U-Boot] [PATCH] ppc/8xxx: relocate cpu pointer in global data Kumar Gala
2009-09-02 2:14 ` Kumar Gala
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.