From: Kumar Gala Date: Wed, 2 Sep 2009 02:07:08 +0000 (-0500) Subject: ppc/8xxx: relocate cpu pointer in global data X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~155 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58157d7ad979a1f26ae8c01c6b09f1a479490d00;p=u-boot 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 --- diff --git a/lib_ppc/board.c b/lib_ppc/board.c index d9a12a1241..e8509ee0e8 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