Skip to contentSkip to conversation

ppc/8xxx: relocate cpu pointer in global data

PATCH New Kumar Gala 1 participant 2 messages Sep 2, 2009

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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.

---
 lib_ppc/board.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
lib_ppc/board.c +4 -0
index 9faf7f2..6e6483b 100644
@@ -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
Signature · 1 line
1.6.0.6
author Applied
#1 lore raw

PATCH 1/1 ppc/8xxx: relocate cpu pointer in global data

Quoted 8 lines · Kumar Gala

Now that we have a pointer to the cpu struct we need to relocate it once
we get into ram.

---
lib_ppc/board.c | 4 ++++

1 files changed, 4 insertions(+), 0 deletions(-)

applied to 85xx.

- k