]> git.sur5r.net Git - u-boot/commitdiff
ppc: Revert patch 70431e8a that used _start instead of CFG_MONITOR_BASE
authorStefan Roese <sr@denx.de>
Wed, 9 Apr 2008 09:54:11 +0000 (11:54 +0200)
committerStefan Roese <sr@denx.de>
Wed, 9 Apr 2008 09:54:11 +0000 (11:54 +0200)
The patch 70431e8a7393b6b793f77957f95b999fc9a269b8 (Make MPC83xx one step
closer to full relocation.) doesn't use CFG_MONITOR_BASE anymore. But
on 4xx systems _start currently cannot be used for this calculation.
So revert back to the original version for now.

Signed-off-by: Stefan Roese <sr@denx.de>
lib_ppc/board.c

index 7d339144924846d81f586c24bc715c913ad363eb..b2bc4ebc5b82ee433e6f11ea91bdc224a420f95e 100644 (file)
@@ -440,7 +440,7 @@ void board_init_f (ulong bootflag)
         *  - monitor code
         *  - board info struct
         */
-       len = (ulong)&_end - (ulong)&_start + EXC_OFF_SYS_RESET;
+       len = (ulong)&_end - CFG_MONITOR_BASE;
 
        /*
         * Subtract specified amount of memory to hide so that it won't