X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cpu%2Farm1136%2Fcpu.c;h=c27f8cd58c0cdad3e9900f4a751fe37b47082873;hb=5252ed95204bdf55bec5a90ea69860bf2f78c643;hp=85a48491b35b7f68b9e09ec866989dd810bf3eb7;hpb=cbdf8824faaeab6f989bee60443987ef6272e77a;p=u-boot diff --git a/cpu/arm1136/cpu.c b/cpu/arm1136/cpu.c index 85a48491b3..c27f8cd58c 100644 --- a/cpu/arm1136/cpu.c +++ b/cpu/arm1136/cpu.c @@ -33,8 +33,9 @@ #include #include -#if !defined(CONFIG_INTEGRATOR) && ! defined(CONFIG_ARCH_CINTEGRATOR) -#include + +#ifdef CONFIG_USE_IRQ +DECLARE_GLOBAL_DATA_PTR; #endif /* read co-processor 15, register #1 (control register) */ @@ -43,10 +44,10 @@ static unsigned long read_p15_c1 (void) unsigned long value; __asm__ __volatile__( - "mrc p15, 0, %0, c1, c0, 0 @ read control reg\n" - : "=r" (value) - : - : "memory"); + "mrc p15, 0, %0, c1, c0, 0 @ read control reg\n" + : "=r" (value) + : + : "memory"); return value; } @@ -88,8 +89,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