cache-nop.S 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #include <linux/linkage.h>
  3. #include <linux/init.h>
  4. #include <asm/assembler.h>
  5. #include "proc-macros.S"
  6. ENTRY(nop_flush_icache_all)
  7. ret lr
  8. ENDPROC(nop_flush_icache_all)
  9. .globl nop_flush_kern_cache_all
  10. .equ nop_flush_kern_cache_all, nop_flush_icache_all
  11. .globl nop_flush_kern_cache_louis
  12. .equ nop_flush_kern_cache_louis, nop_flush_icache_all
  13. .globl nop_flush_user_cache_all
  14. .equ nop_flush_user_cache_all, nop_flush_icache_all
  15. .globl nop_flush_user_cache_range
  16. .equ nop_flush_user_cache_range, nop_flush_icache_all
  17. .globl nop_coherent_kern_range
  18. .equ nop_coherent_kern_range, nop_flush_icache_all
  19. ENTRY(nop_coherent_user_range)
  20. mov r0, 0
  21. ret lr
  22. ENDPROC(nop_coherent_user_range)
  23. .globl nop_flush_kern_dcache_area
  24. .equ nop_flush_kern_dcache_area, nop_flush_icache_all
  25. .globl nop_dma_flush_range
  26. .equ nop_dma_flush_range, nop_flush_icache_all
  27. .globl nop_dma_map_area
  28. .equ nop_dma_map_area, nop_flush_icache_all
  29. .globl nop_dma_unmap_area
  30. .equ nop_dma_unmap_area, nop_flush_icache_all
  31. __INITDATA
  32. @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)
  33. define_cache_functions nop