From: Haiying Wang <haiying.wang@freescale.com>
Date: Tue, 15 Aug 2006 19:13:15 +0000 (-0400)
Subject: Copy Global Data Pointer to r29 for DECLARE_GLOBAL_DATA_PTR
X-Git-Tag: v2025.01-rc5-pxa1908~22941^2~3^2~38^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=67256678f00c09b0a7f19e862e5c1847553d31bc;p=u-boot.git

Copy Global Data Pointer to r29 for DECLARE_GLOBAL_DATA_PTR
---

diff --git a/cpu/mpc86xx/start.S b/cpu/mpc86xx/start.S
index 12bf75b2e1..25687f8bb7 100644
--- a/cpu/mpc86xx/start.S
+++ b/cpu/mpc86xx/start.S
@@ -814,8 +814,9 @@ relocate_code:
 
         mr	r1,  r3		/* Set new stack pointer		*/
 	mr	r9,  r4		/* Save copy of Global Data pointer	*/
+	mr	r29, r9		/* Save for DECLARE_GLOBAL_DATA_PTR	*/
 	mr	r10, r5		/* Save copy of Destination Address	*/
-        
+
 	mr	r3,  r5				/* Destination Address	*/
 	lis	r4, CFG_MONITOR_BASE@h		/* Source      Address	*/
 	ori	r4, r4, CFG_MONITOR_BASE@l