u-boot/arch/arm
Albert ARIBAUD adc421e4ce arm: move gd handling outside of C code
As of gcc 5.2.1 for Thumb-1, it is not possible any
more to assign gd from C code, as gd is mapped to r9,
and r9 may now be saved in the prolog sequence, and
restored in the epilog sequence, of any C functions.

Therefore arch_setup_gd(), which is supposed to set
r9, may actually have no effect, causing U-Boot to
use a bad address to access GD.

Fix this by never calling arch_setup_gd() for ARM,
and instead setting r9 in arch/arm/lib/crt0.S, to
the value returned by board_init_f_alloc_reserve().

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-01-13 21:05:18 -05:00
..
cpu am33xx/am43xx: Add platform data for GPIOs 2016-01-08 10:15:45 -05:00
dts arm: dts: am4372: add qspi register maps for memory map 2016-01-13 18:47:28 +05:30
imx-common imx_common: check for Serial Downloader in spl_boot_device 2016-01-03 15:57:56 +01:00
include Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2016-01-03 10:32:24 -05:00
lib arm: move gd handling outside of C code 2016-01-13 21:05:18 -05:00
mach-at91 arm: at91/spl: atmel_sfr: move saic redirect to separate file 2015-11-30 22:27:55 +01:00
mach-bcm283x rpi: get rid of BCM2835_BOARD_REV_* macros 2015-12-05 18:22:35 -05:00
mach-davinci arm: Remove da830evm board 2015-09-28 10:48:23 -04:00
mach-exynos arm: exynos: clean up checkpatch issues 2015-11-02 10:38:22 +09:00
mach-highbank ARM: highbank: move SoC sources to mach-highbank 2015-02-21 08:23:51 -05:00
mach-integrator integrator: switch to DM serial port 2015-08-12 20:47:49 -04:00
mach-keystone ARM: k2g: add SD card and eMMC support 2015-10-22 14:22:25 -04:00
mach-kirkwood arm: kirkwood: add ZyXEL NSA310S device 2015-11-29 22:16:14 +01:00
mach-mvebu arm: mvebu: Configure ARP timeout and retry count 2015-11-29 16:02:44 +01:00
mach-orion5x arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
mach-rockchip rockchip: Use the debug UART on rk3036 2016-01-12 10:19:09 -07:00
mach-s5pc1xx arm: s5pc1xx: move SoC to mach-s5pc1xx 2015-11-30 17:17:01 +09:00
mach-socfpga arm: socfpga: Unreset NAND in U-Boot 2015-12-22 21:30:02 +01:00
mach-tegra dm: tegra: net: Convert tegra boards to driver model for Ethernet 2016-01-12 10:19:09 -07:00
mach-uniphier ARM: uniphier: add dump command for DDR Multi PHY registers 2016-01-13 01:54:57 +09:00
mach-versatile arm: Remove versatileab board 2015-09-11 15:01:25 -04:00
mach-zynq ARM: zynq: Add default ps7_init_gpl.c/h for ZYBO 2015-12-18 13:15:57 +01:00
mvebu-common arm: mvebu: Move mvebu-common into mach-mvebu 2015-05-05 14:28:29 +02:00
thumb1/include/asm/proc-armv arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
config.mk arm: Include the .got section in the binary 2015-05-14 18:49:34 -06:00
Kconfig arm: mvebu: Select SPL_DM_SEQ_ALIAS 2016-01-13 13:20:03 +01:00
Kconfig.debug arm: debug: add Kconfig entries for lowlevel debug 2014-10-26 22:23:12 +01:00
Makefile arm: s5pc1xx: move SoC to mach-s5pc1xx 2015-11-30 17:17:01 +09:00