9
0
Fork 0

Copy Global Data Pointer to r29 for DECLARE_GLOBAL_DATA_PTR

This commit is contained in:
Haiying Wang 2006-08-15 15:13:15 -04:00 committed by Jon Loeliger
parent fecf1c7e4d
commit 67256678f0
1 changed files with 2 additions and 1 deletions

View File

@ -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