summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorAndrew Murray <andrew.murray@arm.com>2019-04-09 10:52:44 +0100
committerWill Deacon <will.deacon@arm.com>2019-04-16 16:27:58 +0100
commit04a1438e5660ae44ecebd6c870fbcc140dd883a7 (patch)
tree0cf6cd7e0b17429213d655cacc6120c0ca6cdb16 /arch/arm64/include
parent671db581815faf17cbedd7fcbc48823a247d90b1 (diff)
downloadlinux-stable-04a1438e5660ae44ecebd6c870fbcc140dd883a7.tar.gz
linux-stable-04a1438e5660ae44ecebd6c870fbcc140dd883a7.tar.bz2
linux-stable-04a1438e5660ae44ecebd6c870fbcc140dd883a7.zip
arm64: add CVADP support to the cache maintenance helper
Allow users of dcache_by_line_op to specify cvadp as an op. Signed-off-by: Andrew Murray <andrew.murray@arm.com> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/assembler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h
index 621212196871..039fbd822ec6 100644
--- a/arch/arm64/include/asm/assembler.h
+++ b/arch/arm64/include/asm/assembler.h
@@ -407,10 +407,14 @@ alternative_endif
.ifc \op, cvap
sys 3, c7, c12, 1, \kaddr // dc cvap
.else
+ .ifc \op, cvadp
+ sys 3, c7, c13, 1, \kaddr // dc cvadp
+ .else
dc \op, \kaddr
.endif
.endif
.endif
+ .endif
add \kaddr, \kaddr, \tmp1
cmp \kaddr, \size
b.lo 9998b