cache-nop.S 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include "proc-macros.S"
  10. ENTRY(nop_flush_icache_all)
  11. ret lr
  12. ENDPROC(nop_flush_icache_all)
  13. .globl nop_flush_kern_cache_all
  14. .equ nop_flush_kern_cache_all, nop_flush_icache_all
  15. .globl nop_flush_kern_cache_louis
  16. .equ nop_flush_kern_cache_louis, nop_flush_icache_all
  17. .globl nop_flush_user_cache_all
  18. .equ nop_flush_user_cache_all, nop_flush_icache_all
  19. .globl nop_flush_user_cache_range
  20. .equ nop_flush_user_cache_range, nop_flush_icache_all
  21. .globl nop_coherent_kern_range
  22. .equ nop_coherent_kern_range, nop_flush_icache_all
  23. ENTRY(nop_coherent_user_range)
  24. mov r0, 0
  25. ret lr
  26. ENDPROC(nop_coherent_user_range)
  27. .globl nop_flush_kern_dcache_area
  28. .equ nop_flush_kern_dcache_area, nop_flush_icache_all
  29. .globl nop_dma_flush_range
  30. .equ nop_dma_flush_range, nop_flush_icache_all
  31. .globl nop_dma_map_area
  32. .equ nop_dma_map_area, nop_flush_icache_all
  33. .globl nop_dma_unmap_area
  34. .equ nop_dma_unmap_area, nop_flush_icache_all
  35. __INITDATA
  36. @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)
  37. define_cache_functions nop