summaryrefslogtreecommitdiffstats
path: root/cpu/ppc4xx
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-02-14 22:43:22 +0100
committerWolfgang Denk <wd@denx.de>2008-02-14 22:43:22 +0100
commite7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b (patch)
treec105ae64bb203f93e670ef11b3256a4a3086c0ad /cpu/ppc4xx
parent3c234efa693bc59906c2be55c7918ecbb55392ea (diff)
downloadbootable_bootloader_goldelico_gta04-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.zip
bootable_bootloader_goldelico_gta04-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.tar.gz
bootable_bootloader_goldelico_gta04-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.tar.bz2
PPC: Use r2 instead of r29 as global data pointer
R29 was an unlucky choice as with recent toolchains (gcc-4.2.x) gcc will refuse to use load/store multiple insns; instead, it issues a list of simple load/store instructions upon function entry and exit, resulting in bigger code size, which in turn makes the build for a few boards fail. Use r2 instead. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/ppc4xx')
-rw-r--r--cpu/ppc4xx/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/ppc4xx/config.mk b/cpu/ppc4xx/config.mk
index 4fd5108..311c97b 100644
--- a/cpu/ppc4xx/config.mk
+++ b/cpu/ppc4xx/config.mk
@@ -22,7 +22,7 @@
#
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
-PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -msoft-float
+PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
is440=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))