diff options
| author | Wolfgang Denk <wd@denx.de> | 2008-02-14 22:43:22 +0100 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2008-02-14 22:43:22 +0100 | 
| commit | e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b (patch) | |
| tree | c105ae64bb203f93e670ef11b3256a4a3086c0ad /examples/test_burst_lib.S | |
| parent | 3c234efa693bc59906c2be55c7918ecbb55392ea (diff) | |
| download | olio-uboot-2014.01-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.tar.xz olio-uboot-2014.01-e7670f6c1e52ae6d2a43ff75a8bcfa7a5c86e47b.zip | |
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 'examples/test_burst_lib.S')
| -rw-r--r-- | examples/test_burst_lib.S | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/examples/test_burst_lib.S b/examples/test_burst_lib.S index 5bb498142..aef4e3242 100644 --- a/examples/test_burst_lib.S +++ b/examples/test_burst_lib.S @@ -70,7 +70,7 @@ mmu_init:  	 * we can load the instruction and data TLB registers with the  	 * same values.  	 */ -	lwz	r9,20(r29)		/* gd->ram_size */ +	lwz	r9,20(r2)		/* gd->ram_size */  	addis	r9,r9,-0x80  	mr	r8, r9			/* Higher 8 Meg in SDRAM */ |