Commit fe184066 authored by Mark Charlebois's avatar Mark Charlebois Committed by Catalin Marinas

arm64: LLVMLinux: Fix inline arm64 assembly for use with clang

Remove '#' from immediate parameter in AARCH64 inline assembly in mmu.

This code now works with both gcc and clang.
Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>
Signed-off-by: default avatarBehan Webster <behanw@converseincode.com>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent b4da1840
...@@ -94,7 +94,7 @@ static int __init early_cachepolicy(char *p) ...@@ -94,7 +94,7 @@ static int __init early_cachepolicy(char *p)
*/ */
asm volatile( asm volatile(
" mrs %0, mair_el1\n" " mrs %0, mair_el1\n"
" bfi %0, %1, #%2, #8\n" " bfi %0, %1, %2, #8\n"
" msr mair_el1, %0\n" " msr mair_el1, %0\n"
" isb\n" " isb\n"
: "=&r" (tmp) : "=&r" (tmp)
......
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