]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc5xxx/cpu_init.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / cpu / mpc5xxx / cpu_init.c
index 3df005009ebca12113549a355db5c983e2d11f91..4a370ffea94c568f66c8527fc8693b01f823ebb7 100644 (file)
@@ -24,6 +24,8 @@
 #include <common.h>
 #include <mpc5xxx.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * Breath some life into the CPU...
  *
@@ -32,8 +34,6 @@
  */
 void cpu_init_f (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        unsigned long addecr = (1 << 25); /* Boot_CS */
 #if defined(CFG_RAMBOOT) && defined(CONFIG_MGT5100)
        addecr |= (1 << 22); /* SDRAM enable */