]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/cpu.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / cpu / ppc4xx / cpu.c
index a26533c59c7e553e94143138f30cc623f2a6abe0..0cd72b00a18ea9aacb9ff4f2671cdaacb869a473 100644 (file)
 #include <asm/cache.h>
 #include <ppc4xx.h>
 
+#if !defined(CONFIG_405)
+DECLARE_GLOBAL_DATA_PTR;
+#endif
+
 
 #if defined(CONFIG_440)
 #define FREQ_EBC               (sys_info.freqEPB)
@@ -116,7 +120,6 @@ static int do_chip_reset(unsigned long sys0, unsigned long sys1);
 int checkcpu (void)
 {
 #if !defined(CONFIG_405)       /* not used on Xilinx 405 FPGA implementations */
-       DECLARE_GLOBAL_DATA_PTR;
        uint pvr = get_pvr();
        ulong clock = gd->cpu_clk;
        char buf[32];