]> git.sur5r.net Git - u-boot/blobdiff - lib_ppc/board.c
ppc/8xxx: relocate cpu pointer in global data
[u-boot] / lib_ppc / board.c
index d9a12a1241329cbd14808a2e59a957c11a9e0cf7..e8509ee0e8d58167f489f6a0a6048671c14655d5 100644 (file)
@@ -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