projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c671e7
)
ppc/8xxx: relocate cpu pointer in global data
author
Kumar Gala
<galak@kernel.crashing.org>
Wed, 2 Sep 2009 02:07:08 +0000
(21:07 -0500)
committer
Kumar Gala
<galak@kernel.crashing.org>
Tue, 8 Sep 2009 14:10:04 +0000
(09:10 -0500)
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
patch
|
blob
|
history
diff --git
a/lib_ppc/board.c
b/lib_ppc/board.c
index
d9a12a1
..
e8509ee
100644
(file)
--- 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