/* SPDX-License-Identifier: GPL-2.0-only */ | |
/* | |
* Code copied from arch/arm64/mm/cache.S. | |
*/ | |
#include <linux/linkage.h> | |
#include <asm/assembler.h> | |
#include <asm/alternative.h> | |
SYM_FUNC_START_PI(dcache_clean_inval_poc) | |
dcache_by_line_op civac, sy, x0, x1, x2, x3 | |
ret | |
SYM_FUNC_END_PI(dcache_clean_inval_poc) | |
SYM_FUNC_START_PI(icache_inval_pou) | |
alternative_if ARM64_HAS_CACHE_DIC | |
isb | |
ret | |
alternative_else_nop_endif | |
invalidate_icache_by_line x0, x1, x2, x3 | |
ret | |
SYM_FUNC_END_PI(icache_inval_pou) |