Skip to content
Snippets Groups Projects
Commit f9476902 authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

mpc85xx, mpc86xx: Fix gd->cpu pointer after relocation


The gd->cpu pointer is set to an address located in flash when the
probecpu() function is called while U-Boot is executing from flash.
This pointer needs to be updated to point to an address in RAM after
relocation has occurred otherwise Linux may not be able to boot due to
"fdt board" crashing if flash has been erased or changed.

This bug was introduced in commit
a0e2066f.

Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
Reported-by: default avatarEd Swarthout <Ed.Swarthout@freescale.com>
Tested-by: default avatarKumar Gala <galak@kernel.crashing.org>
Tested on MPC8527DS.
Tested by: Ed Swarthout <Ed.Swarthout@freescale.com>
parent 3363a34b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment