aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/cache.S
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-07-22 07:21:02 -0400
committerWill Deacon <will.deacon@arm.com>2015-07-27 06:08:40 -0400
commit271d35eb77d0f53177b44968417b630d1fee8b99 (patch)
tree329f69f23345b6e93028dc32aa49278e923af99c /arch/arm64/mm/cache.S
parent63e40815f02584ba8174e0f6af40924b2b335cae (diff)
arm64: mm: Adopt new alternative assembler macros
Convert the dynamic patching for ARM64_WORKAROUND_CLEAN_CACHE over to the newly added alternative assembler macros. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/cache.S')
-rw-r--r--arch/arm64/mm/cache.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm64/mm/cache.S b/arch/arm64/mm/cache.S
index bdeb5d38c2dd..eb48d5df4a0f 100644
--- a/arch/arm64/mm/cache.S
+++ b/arch/arm64/mm/cache.S
@@ -143,7 +143,12 @@ __dma_clean_range:
143 dcache_line_size x2, x3 143 dcache_line_size x2, x3
144 sub x3, x2, #1 144 sub x3, x2, #1
145 bic x0, x0, x3 145 bic x0, x0, x3
1461: alternative_insn "dc cvac, x0", "dc civac, x0", ARM64_WORKAROUND_CLEAN_CACHE 1461:
147alternative_if_not ARM64_WORKAROUND_CLEAN_CACHE
148 dc cvac, x0
149alternative_else
150 dc civac, x0
151alternative_endif
147 add x0, x0, x2 152 add x0, x0, x2
148 cmp x0, x1 153 cmp x0, x1
149 b.lo 1b 154 b.lo 1b