Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Catalin Marinas | 55bdd69 | 2010-05-21 18:06:41 +0100 | [diff] [blame] | 2 | #include <linux/linkage.h> |
| 3 | #include <linux/init.h> |
Russell King | 6ebbf2c | 2014-06-30 16:29:12 +0100 | [diff] [blame] | 4 | #include <asm/assembler.h> |
Catalin Marinas | 55bdd69 | 2010-05-21 18:06:41 +0100 | [diff] [blame] | 5 | |
| 6 | #include "proc-macros.S" |
| 7 | |
| 8 | ENTRY(nop_flush_icache_all) |
Russell King | 6ebbf2c | 2014-06-30 16:29:12 +0100 | [diff] [blame] | 9 | ret lr |
Catalin Marinas | 55bdd69 | 2010-05-21 18:06:41 +0100 | [diff] [blame] | 10 | ENDPROC(nop_flush_icache_all) |
| 11 | |
| 12 | .globl nop_flush_kern_cache_all |
| 13 | .equ nop_flush_kern_cache_all, nop_flush_icache_all |
| 14 | |
| 15 | .globl nop_flush_kern_cache_louis |
| 16 | .equ nop_flush_kern_cache_louis, nop_flush_icache_all |
| 17 | |
| 18 | .globl nop_flush_user_cache_all |
| 19 | .equ nop_flush_user_cache_all, nop_flush_icache_all |
| 20 | |
| 21 | .globl nop_flush_user_cache_range |
| 22 | .equ nop_flush_user_cache_range, nop_flush_icache_all |
| 23 | |
| 24 | .globl nop_coherent_kern_range |
| 25 | .equ nop_coherent_kern_range, nop_flush_icache_all |
| 26 | |
| 27 | ENTRY(nop_coherent_user_range) |
| 28 | mov r0, 0 |
Russell King | 6ebbf2c | 2014-06-30 16:29:12 +0100 | [diff] [blame] | 29 | ret lr |
Catalin Marinas | 55bdd69 | 2010-05-21 18:06:41 +0100 | [diff] [blame] | 30 | ENDPROC(nop_coherent_user_range) |
| 31 | |
| 32 | .globl nop_flush_kern_dcache_area |
| 33 | .equ nop_flush_kern_dcache_area, nop_flush_icache_all |
| 34 | |
| 35 | .globl nop_dma_flush_range |
| 36 | .equ nop_dma_flush_range, nop_flush_icache_all |
| 37 | |
| 38 | .globl nop_dma_map_area |
| 39 | .equ nop_dma_map_area, nop_flush_icache_all |
| 40 | |
| 41 | .globl nop_dma_unmap_area |
| 42 | .equ nop_dma_unmap_area, nop_flush_icache_all |
| 43 | |
| 44 | __INITDATA |
| 45 | |
| 46 | @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S) |
| 47 | define_cache_functions nop |