Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2#include <linux/linkage.h>
3#include <linux/init.h>
4#include <linux/cfi_types.h>
5#include <asm/assembler.h>
6
7#include "proc-macros.S"
8
9/*
10 * These are all open-coded instead of aliased, to make clear
11 * what is going on here: all functions are stubbed out.
12 */
13SYM_TYPED_FUNC_START(nop_flush_icache_all)
14 ret lr
15SYM_FUNC_END(nop_flush_icache_all)
16
17SYM_TYPED_FUNC_START(nop_flush_kern_cache_all)
18 ret lr
19SYM_FUNC_END(nop_flush_kern_cache_all)
20
21SYM_TYPED_FUNC_START(nop_flush_user_cache_all)
22 ret lr
23SYM_FUNC_END(nop_flush_user_cache_all)
24
25SYM_TYPED_FUNC_START(nop_flush_user_cache_range)
26 ret lr
27SYM_FUNC_END(nop_flush_user_cache_range)
28
29SYM_TYPED_FUNC_START(nop_coherent_kern_range)
30 ret lr
31SYM_FUNC_END(nop_coherent_kern_range)
32
33SYM_TYPED_FUNC_START(nop_coherent_user_range)
34 mov r0, 0
35 ret lr
36SYM_FUNC_END(nop_coherent_user_range)
37
38SYM_TYPED_FUNC_START(nop_flush_kern_dcache_area)
39 ret lr
40SYM_FUNC_END(nop_flush_kern_dcache_area)
41
42SYM_TYPED_FUNC_START(nop_dma_flush_range)
43 ret lr
44SYM_FUNC_END(nop_dma_flush_range)
45
46SYM_TYPED_FUNC_START(nop_dma_map_area)
47 ret lr
48SYM_FUNC_END(nop_dma_map_area)
49
50SYM_TYPED_FUNC_START(nop_dma_unmap_area)
51 ret lr
52SYM_FUNC_END(nop_dma_unmap_area)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6#include <linux/linkage.h>
7#include <linux/init.h>
8#include <asm/assembler.h>
9
10#include "proc-macros.S"
11
12ENTRY(nop_flush_icache_all)
13 ret lr
14ENDPROC(nop_flush_icache_all)
15
16 .globl nop_flush_kern_cache_all
17 .equ nop_flush_kern_cache_all, nop_flush_icache_all
18
19 .globl nop_flush_kern_cache_louis
20 .equ nop_flush_kern_cache_louis, nop_flush_icache_all
21
22 .globl nop_flush_user_cache_all
23 .equ nop_flush_user_cache_all, nop_flush_icache_all
24
25 .globl nop_flush_user_cache_range
26 .equ nop_flush_user_cache_range, nop_flush_icache_all
27
28 .globl nop_coherent_kern_range
29 .equ nop_coherent_kern_range, nop_flush_icache_all
30
31ENTRY(nop_coherent_user_range)
32 mov r0, 0
33 ret lr
34ENDPROC(nop_coherent_user_range)
35
36 .globl nop_flush_kern_dcache_area
37 .equ nop_flush_kern_dcache_area, nop_flush_icache_all
38
39 .globl nop_dma_flush_range
40 .equ nop_dma_flush_range, nop_flush_icache_all
41
42 .globl nop_dma_map_area
43 .equ nop_dma_map_area, nop_flush_icache_all
44
45 .globl nop_dma_unmap_area
46 .equ nop_dma_unmap_area, nop_flush_icache_all
47
48 __INITDATA
49
50 @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)
51 define_cache_functions nop