cache.h 593 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * include/asm-blackfin/cache.h
  3. */
  4. #ifndef __ARCH_BLACKFIN_CACHE_H
  5. #define __ARCH_BLACKFIN_CACHE_H
  6. /*
  7. * Bytes per L1 cache line
  8. * Blackfin loads 32 bytes for cache
  9. */
  10. #define L1_CACHE_SHIFT 5
  11. #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
  12. #define SMP_CACHE_BYTES L1_CACHE_BYTES
  13. /*
  14. * Put cacheline_aliged data to L1 data memory
  15. */
  16. #ifdef CONFIG_CACHELINE_ALIGNED_L1
  17. #define __cacheline_aligned \
  18. __attribute__((__aligned__(L1_CACHE_BYTES), \
  19. __section__(".data_l1.cacheline_aligned")))
  20. #endif
  21. /*
  22. * largest L1 which this arch supports
  23. */
  24. #define L1_CACHE_SHIFT_MAX 5
  25. #endif