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,
local_irq_save(flags);
asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
udelay(10);
__asm__ __volatile__("
b 2f
.align 5
1: str %3, [%1, #0] @ MDCNFG
str %4, [%1, #28] @ MDREFR
str %5, [%1, #4] @ MDCAS0
str %6, [%1, #8] @ MDCAS1
str %7, [%1, #12] @ MDCAS2
str %8, [%2, #0] @ PPCR
ldr %0, [%1, #0]
b 3f
2: b 1b
3: nop
__asm__ __volatile__(" \n\
b 2f \n\
.align 5 \n\
1: str %3, [%1, #0] @ MDCNFG \n\
str %4, [%1, #28] @ MDREFR \n\
str %5, [%1, #4] @ MDCAS0 \n\
str %6, [%1, #8] @ MDCAS1 \n\
str %7, [%1, #12] @ MDCAS2 \n\
str %8, [%2, #0] @ PPCR \n\
ldr %0, [%1, #0] \n\
b 3f \n\
2: b 1b \n\
3: nop \n\
nop"
: "=&r" (unused)
: "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