PPC: Use r2 instead of r29 as global data pointer
authorWolfgang Denk <wd@denx.de>
Thu, 14 Feb 2008 21:43:22 +0000 (22:43 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 14 Feb 2008 21:43:22 +0000 (22:43 +0100)
commite7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b
treec105ae64bb203f93e670ef11b3256a4a3086c0ad
parent3c234efa693bc59906c2be55c7918ecbb55392ea
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>
19 files changed:
README
cpu/74xx_7xx/config.mk
cpu/mpc512x/config.mk
cpu/mpc5xx/config.mk
cpu/mpc5xxx/config.mk
cpu/mpc8220/config.mk
cpu/mpc824x/config.mk
cpu/mpc8260/config.mk
cpu/mpc83xx/config.mk
cpu/mpc85xx/config.mk
cpu/mpc86xx/config.mk
cpu/mpc86xx/start.S
cpu/mpc8xx/config.mk
cpu/ppc4xx/config.mk
doc/README.standalone
examples/stubs.c
examples/test_burst_lib.S
examples/x86-testapp.c
include/asm-ppc/global_data.h