]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
lib_ppc: Revert "Make MPC83xx one step closer to full relocation."
authorKim Phillips <kim.phillips@freescale.com>
Mon, 21 Apr 2008 23:10:14 +0000 (18:10 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 24 Apr 2008 22:13:12 +0000 (00:13 +0200)
This reverts commit 70431e8a7393b6b793f77957f95b999fc9a269b8 which has
proven problematic getting right from the start at least on 83xx and
4xx.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/start.S
lib_ppc/board.c

index fdf9d35e25688e6667a4189dbc96acef2148304a..309eb30e8e97b423218d5f5f761461c5fedf1e3b 100644 (file)
@@ -172,11 +172,8 @@ boot_warm: /* time t 5 */
        /* there and deflate the flash size back to minimal size      */
        /*------------------------------------------------------------*/
        bl map_flash_by_law1
-
-       GET_GOT                 /* initialize GOT access        */
-       lwz r4, GOT(_start)
-       addi r4, r4, -EXC_OFF_SYS_RESET
-
+       lis r4, (CFG_MONITOR_BASE)@h
+       ori r4, r4, (CFG_MONITOR_BASE)@l
        addi r5, r4, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr r5
        blr
@@ -875,8 +872,8 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address */
 
        mr      r3,  r5                         /* Destination Address */
-       lwz     r4, GOT(_start)
-       addi    r4, r4, -EXC_OFF_SYS_RESET
+       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address */
+       ori     r4, r4, CFG_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
        li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size */
index b2bc4ebc5b82ee433e6f11ea91bdc224a420f95e..1b8a8721a3e4e0f08b1b7f35d8697f37742272dc 100644 (file)
@@ -124,7 +124,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #define CFG_MEM_TOP_HIDE       0
 #endif
 
-extern ulong _start;
 extern ulong __init_end;
 extern ulong _end;
 ulong monitor_flash_len;