]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/cpu_init.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / cpu / ppc4xx / cpu_init.c
index 79cfba3a4511d1892c967e012ba5b352b5878a55..1a139d739eccee84e937ed6df81004967f8cd3ec 100644 (file)
 #include <asm/processor.h>
 #include <ppc4xx.h>
 
+#if defined(CONFIG_405GP)  || defined(CONFIG_405EP)
+DECLARE_GLOBAL_DATA_PTR;
+#endif
+
 
 #define mtebc(reg, data)  mtdcr(ebccfga,reg);mtdcr(ebccfgd,data)
 
@@ -209,8 +213,6 @@ cpu_init_f (void)
 int cpu_init_r (void)
 {
 #if defined(CONFIG_405GP)  || defined(CONFIG_405EP)
-       DECLARE_GLOBAL_DATA_PTR;
-
        bd_t *bd = gd->bd;
        unsigned long reg;
 #if defined(CONFIG_405GP)