summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorMark Charlebois <charlebm@gmail.com>2014-09-15 07:30:15 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2014-09-15 18:56:39 +0200
commitfe184066abda9de114a80db24f1496ee6c31d1af (patch)
tree1fba430a42b086b08eed351b1276b2ea0ddad052 /arch/arm64/mm
parentarm64: pageattr: Correctly adjust unaligned start addresses (diff)
downloadlinux-fe184066abda9de114a80db24f1496ee6c31d1af.tar.xz
linux-fe184066abda9de114a80db24f1496ee6c31d1af.zip
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: 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>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index c55567283cde..6894ef3e6234 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -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)