Commit 906e045d authored by Russell King's avatar Russell King

[ARM] Fix cpu-sa1110.c gcc3 build error (multi-line asm statement)

parent 4a70cedd
...@@ -282,19 +282,19 @@ static int sa1110_target(struct cpufreq_policy *policy, ...@@ -282,19 +282,19 @@ static int sa1110_target(struct cpufreq_policy *policy,
local_irq_save(flags); local_irq_save(flags);
asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0)); asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
udelay(10); udelay(10);
__asm__ __volatile__(" __asm__ __volatile__(" \n\
b 2f b 2f \n\
.align 5 .align 5 \n\
1: str %3, [%1, #0] @ MDCNFG 1: str %3, [%1, #0] @ MDCNFG \n\
str %4, [%1, #28] @ MDREFR str %4, [%1, #28] @ MDREFR \n\
str %5, [%1, #4] @ MDCAS0 str %5, [%1, #4] @ MDCAS0 \n\
str %6, [%1, #8] @ MDCAS1 str %6, [%1, #8] @ MDCAS1 \n\
str %7, [%1, #12] @ MDCAS2 str %7, [%1, #12] @ MDCAS2 \n\
str %8, [%2, #0] @ PPCR str %8, [%2, #0] @ PPCR \n\
ldr %0, [%1, #0] ldr %0, [%1, #0] \n\
b 3f b 3f \n\
2: b 1b 2: b 1b \n\
3: nop 3: nop \n\
nop" nop"
: "=&r" (unused) : "=&r" (unused)
: "r" (&MDCNFG), "r" (&PPCR), "0" (sd.mdcnfg), : "r" (&MDCNFG), "r" (&PPCR), "0" (sd.mdcnfg),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment