cachectl.h 585 B

1234567891011121314151617181920
  1. #ifndef _SH_CACHECTL_H
  2. #define _SH_CACHECTL_H
  3. /* Definitions for the cacheflush system call. */
  4. #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */
  5. #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */
  6. #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */
  7. #define CACHEFLUSH_I 0x4
  8. /*
  9. * Options for cacheflush system call
  10. */
  11. #define ICACHE CACHEFLUSH_I /* flush instruction cache */
  12. #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */
  13. #define BCACHE (ICACHE|DCACHE) /* flush both caches */
  14. #endif /* _SH_CACHECTL_H */