X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cpu%2Farm925t%2Fcpu.c;h=b9f09318ad52cb2189b46db763a527052bef0f73;hb=89c00fb15859213788f0ad089934c376fb356099;hp=c1c6b03e4245dfe872b024cf82487435fbd7fcab;hpb=3ec924a3cb7bc3b37be9adec695d7c3d563b3d2c;p=oweals%2Fu-boot.git diff --git a/cpu/arm925t/cpu.c b/cpu/arm925t/cpu.c index c1c6b03e42..b9f09318ad 100644 --- a/cpu/arm925t/cpu.c +++ b/cpu/arm925t/cpu.c @@ -33,6 +33,10 @@ #include #include +#ifdef CONFIG_USE_IRQ +DECLARE_GLOBAL_DATA_PTR; +#endif + /* read co-processor 15, register #1 (control register) */ static unsigned long read_p15_c1 (void) { @@ -91,9 +95,7 @@ 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; + IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4; FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ; #endif return 0;