]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Fix problem with init-ram bigger than 4k on 440 platforms
authorStefan Roese <sr@denx.de>
Wed, 30 Jan 2008 13:48:28 +0000 (14:48 +0100)
committerStefan Roese <sr@denx.de>
Mon, 4 Feb 2008 10:47:40 +0000 (11:47 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/start.S
include/configs/pcs440ep.h
include/configs/yosemite.h

index 77c2aa4117845b479878ba327825bb19143122c4..06380248ca56633cf03f7396c2fb796cdc853ede 100644 (file)
 # endif
 #endif /* CFG_INIT_DCACHE_CS */
 
+#if (defined(CFG_INIT_RAM_DCACHE) && (CFG_INIT_RAM_END > (4 << 10)))
+#error Only 4k of init-ram is supported - please adjust CFG_INIT_RAM_END!
+#endif
+
 #define function_prolog(func_name)     .text; \
                                        .align 2; \
                                        .globl func_name; \
index d66f4bd449b5498b388c181cc1ce6aa20901003c..07fc23e5e73724780c21bbe9c6e580287e145704 100644 (file)
@@ -66,7 +66,7 @@
  *----------------------------------------------------------------------*/
 #define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
 #define CFG_INIT_RAM_ADDR      0x70000000              /* DCache       */
-#define CFG_INIT_RAM_END       (8 << 10)
+#define CFG_INIT_RAM_END       (4 << 10)
 #define CFG_GBL_DATA_SIZE      256                     /* num bytes initial data*/
 #define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
 #define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
index a8eeff989c347fe5972350af349a3580755e89a4..4c86bc53cf8253c32b30d71776d9273a08b1183f 100644 (file)
@@ -75,7 +75,7 @@
  *----------------------------------------------------------------------*/
 #define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
 #define CFG_INIT_RAM_ADDR      0x70000000              /* DCache       */
-#define CFG_INIT_RAM_END       (8 << 10)
+#define CFG_INIT_RAM_END       (4 << 10)
 #define CFG_GBL_DATA_SIZE      256                     /* num bytes initial data*/
 #define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
 #define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET