summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorHaiying Wang <haiying.wang@freescale.com>2006-08-15 15:13:15 -0400
committerJon Loeliger <jdl@freescale.com>2006-08-17 11:00:14 -0500
commit0d9ccc55edf9a7f3c5b2b6263580a6ea8d702a04 (patch)
treea18285af8df08c85ad12e377ad6641a7e4e014af /cpu
parente862ed1c22a9aa79835fc4b5f57b4261196a7fac (diff)
Copy Global Data Pointer to r29 for DECLARE_GLOBAL_DATA_PTR
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc86xx/start.S3
1 files changed, 2 insertions, 1 deletions
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