xref: /linux-6.14.4/arch/arm64/kvm/hyp/nvhe/cache.S
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Code copied from arch/arm64/mm/cache.S.
4 */
5
6#include <linux/linkage.h>
7#include <asm/assembler.h>
8#include <asm/alternative.h>
9
10SYM_FUNC_START(__pi_dcache_clean_inval_poc)
11	dcache_by_line_op civac, sy, x0, x1, x2, x3
12	ret
13SYM_FUNC_END(__pi_dcache_clean_inval_poc)
14SYM_FUNC_ALIAS(dcache_clean_inval_poc, __pi_dcache_clean_inval_poc)
15
16SYM_FUNC_START(__pi_icache_inval_pou)
17alternative_if ARM64_HAS_CACHE_DIC
18	isb
19	ret
20alternative_else_nop_endif
21
22	invalidate_icache_by_line x0, x1, x2, x3
23	ret
24SYM_FUNC_END(__pi_icache_inval_pou)
25SYM_FUNC_ALIAS(icache_inval_pou, __pi_icache_inval_pou)
26

served by {OpenGrok

Last Index Update: Mon Apr 28 06:57:04 CEST 2025