u-boot-brain/arch/powerpc/cpu
Scott Wood e1bfd1c6b7 powerpc/mpc85xx: Use GOT when loading IVORs post-relocation
Commit 96d2bb952b ("powerpc/mpc85xx: Don't relocate exception vectors")
simplified IVOR initialization a bit too much, failing to use the
post-relocation offset.  This doesn't cause a problem with normal NOR
boot, in which both the pre-relocation and post-relocation addresses
are 64 KiB aligned.  However, if TEXT_BASE is only 4 KiB aligned, such
as for NAND/SD/etc. boot on some targets, as well as the QEMU target,
the post-relocation address will not be the same in the lower 16 bits,
as reserve_uboot() ensures that the relocation address is always 64
KiB aligned even if the pre-relocation address was not.

Use the GOT to get the proper post-relocation offsets.

Fixes: 96d2bb952b ("powerpc/mpc85xx: Don't relocate exception vectors")
Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Tested-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-05-04 09:23:18 -07:00
..
mpc5xx kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc5xxx powerpc: mpc5xxx: remove galaxy5200 board support 2015-03-17 11:00:22 -04:00
mpc8xx net: cosmetic: Fix var naming net <-> eth drivers 2015-04-18 11:11:33 -06:00
mpc8xxx powerpc/mpc85xx: Add DSP side awareness for Freescale Heterogeneous SoCs 2015-03-04 10:15:29 -08:00
mpc83xx powerpc: ids8313: use "select" instead of default value in defconfig 2015-04-18 11:11:32 -06:00
mpc85xx powerpc/mpc85xx: Use GOT when loading IVORs post-relocation 2015-05-04 09:23:18 -07:00
mpc86xx remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
mpc512x kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
mpc8260 net: cosmetic: Fix var naming net <-> eth drivers 2015-04-18 11:11:33 -06:00
ppc4xx dm: select CONFIG_DM* options 2015-04-18 11:11:30 -06:00
Makefile Makefile: Select objects by CONFIG_ rather than $(ARCH) or $(CPU) 2013-12-16 08:59:42 -05:00