cache.h 630 B

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