cache.c 826 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-07-14 JasonHu first version
  9. */
  10. #include <rthw.h>
  11. #include <rtdef.h>
  12. #include "cache.h"
  13. void rt_hw_cpu_icache_invalidate(void *addr,int size)
  14. {
  15. }
  16. void rt_hw_cpu_dcache_invalidate(void *addr,int size)
  17. {
  18. }
  19. void rt_hw_cpu_dcache_clean(void *addr,int size)
  20. {
  21. }
  22. void rt_hw_cpu_icache_ops(int ops,void *addr,int size)
  23. {
  24. }
  25. void rt_hw_cpu_dcache_ops(int ops,void *addr,int size)
  26. {
  27. }
  28. void rt_hw_cpu_dcache_flush_all()
  29. {
  30. }
  31. void rt_hw_cpu_icache_invalidate_all()
  32. {
  33. }
  34. rt_base_t rt_hw_cpu_icache_status()
  35. {
  36. return 0;
  37. }
  38. rt_base_t rt_hw_cpu_dcache_status()
  39. {
  40. return 0;
  41. }
  42. int sys_cacheflush(void *addr, int size, int cache)
  43. {
  44. return 0;
  45. }