Commit 49dd0dcf authored by Behan Webster's avatar Behan Webster Committed by Arnd Bergmann
Browse files

arm, vt8500, LLVMLlinux: Use mcr instead of mcr% for mach-vt8500

The ASM below does not compile with clang and is not the way that the mcr
command is used in other parts of the kernel.

arch/arm/mach-vt8500/vt8500.c:72:11: error: invalid % escape in inline assembly string
        asm("mcr%? p15, 0, %0, c7, c0, 4" : : "r" (0));
1 error generated.

There are other forms that are supported on different ARM instruction sets but
generally the kernel just uses mcr as it is supported in all ARM instruction

Signed-off-by: default avatarBehan Webster <>
Reviewed-by: default avatarMark Charlebois <>
Acked-by: default avatarWill Deacon <>
Acked-by: default avatarTony Prisk <>
Signed-off-by: default avatarArnd Bergmann <>
parent f18cf050
......@@ -69,7 +69,7 @@ static void vt8500_power_off(void)
writew(5, pmc_base + VT8500_HCR_REG);
asm("mcr%? p15, 0, %0, c7, c0, 4" : : "r" (0));
asm("mcr p15, 0, %0, c7, c0, 4" : : "r" (0));
static void __init vt8500_init(void)
Supports Markdown
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