mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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 <galak@kernel.crashing.org>
This commit is contained in:
parent
9c671e7062
commit
13d46ab257
1 changed files with 4 additions and 0 deletions
|
@ -655,6 +655,10 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
||||||
TOTAL_MALLOC_LEN;
|
TOTAL_MALLOC_LEN;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
|
||||||
|
gd->cpu += gd->reloc_off;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_MULTI
|
#ifdef CONFIG_SERIAL_MULTI
|
||||||
serial_initialize();
|
serial_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue