u-boot-brain/arch
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
..
arc arc: fix separate compilation of start.o 2015-04-10 19:22:40 +03:00
arm Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze 2015-04-29 06:46:33 -04:00
avr32 net: Remove the bd* parameter from net stack functions 2015-04-18 11:11:11 -06:00
blackfin generic-board: select SYS_GENERIC_BOARD for some architectures 2015-03-28 09:03:08 -04:00
m68k m68k: add architecture-specific u-boot.lds 2015-04-23 14:56:07 -04:00
microblaze generic-board: select SYS_GENERIC_BOARD for some architectures 2015-03-28 09:03:08 -04:00
mips MIPS: implement device-tree handover to Linux kernel 2015-04-24 12:15:34 +02:00
nds32 net: Remove the bd* parameter from net stack functions 2015-04-18 11:11:11 -06:00
nios2 fdt: nios: Fix warning in ft_cpu_setup() 2015-04-10 08:15:24 -06:00
openrisc net: Remove the bd* parameter from net stack functions 2015-04-18 11:11:11 -06:00
powerpc powerpc/mpc85xx: Use GOT when loading IVORs post-relocation 2015-05-04 09:23:18 -07:00
sandbox fdt: sandbox: Move setup code from board_f to fdtdec 2015-04-23 09:05:53 -06:00
sh net: Remove the bd* parameter from net stack functions 2015-04-18 11:11:11 -06:00
sparc net: Remove the bd* parameter from net stack functions 2015-04-18 11:11:11 -06:00
x86 sandbox: Move CONFIG_SYS_VSNPRINTF to Kconfig 2015-04-18 11:11:37 -06:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig dm: select CONFIG_DM* options 2015-04-18 11:11:30 -06:00