cache.h 610 B

12345678910111213141516171819202122232425
  1. /* cache.h: Cache specific code for the Sparc. These include flushing
  2. * and direct tag/data line access.
  3. *
  4. * Copyright (C) 1995, 2007 David S. Miller ([email protected])
  5. */
  6. #ifndef _SPARC_CACHE_H
  7. #define _SPARC_CACHE_H
  8. #define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
  9. #define L1_CACHE_SHIFT 5
  10. #define L1_CACHE_BYTES 32
  11. #ifdef CONFIG_SPARC32
  12. #define SMP_CACHE_BYTES_SHIFT 5
  13. #else
  14. #define SMP_CACHE_BYTES_SHIFT 6
  15. #endif
  16. #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT)
  17. #define __read_mostly __attribute__((__section__(".data..read_mostly")))
  18. #endif /* !(_SPARC_CACHE_H) */