arm64: LLVMLinux: Fix inline arm64 assembly for use with clang
authorMark Charlebois <charlebm@gmail.com>
Mon, 15 Sep 2014 05:30:15 +0000 (06:30 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 15 Sep 2014 16:56:39 +0000 (17:56 +0100)
Remove '#' from immediate parameter in AARCH64 inline assembly in mmu.

This code now works with both gcc and clang.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c

index c55567283cded6e15f98e33a27bcd5695f67bfef..6894ef3e62342bb7e0f35252c03cb29faabaddc3 100644 (file)
@@ -94,7 +94,7 @@ static int __init early_cachepolicy(char *p)
         */
        asm volatile(
        "       mrs     %0, mair_el1\n"
-       "       bfi     %0, %1, #%2, #8\n"
+       "       bfi     %0, %1, %2, #8\n"
        "       msr     mair_el1, %0\n"
        "       isb\n"
        : "=&r" (tmp)