• Home
  • 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)
14
15SYM_FUNC_START_PI(icache_inval_pou)
16alternative_if ARM64_HAS_CACHE_DIC
17	isb
18	ret
19alternative_else_nop_endif
20
21	invalidate_icache_by_line x0, x1, x2, x3
22	ret
23SYM_FUNC_END_PI(icache_inval_pou)
24