]> Git Repo - J-u-boot.git/blobdiff - cpu/arm1136/cpu.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[J-u-boot.git] / cpu / arm1136 / cpu.c
index 85a48491b35b7f68b9e09ec866989dd810bf3eb7..fa78eaa7f06816373982b6577ef935a306a28e4e 100644 (file)
 #include <asm/arch/omap2420.h>
 #endif
 
+#ifdef CONFIG_USE_IRQ
+DECLARE_GLOBAL_DATA_PTR;
+#endif
+
 /* read co-processor 15, register #1 (control register) */
 static unsigned long read_p15_c1 (void)
 {
@@ -88,8 +92,6 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       DECLARE_GLOBAL_DATA_PTR;
-
        IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
This page took 0.023849 seconds and 4 git commands to generate.