cache.h 507 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * include/asm-alpha/cache.h
  4. */
  5. #ifndef __ARCH_ALPHA_CACHE_H
  6. #define __ARCH_ALPHA_CACHE_H
  7. /* Bytes per L1 (data) cache line. */
  8. #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EV6)
  9. # define L1_CACHE_BYTES 64
  10. # define L1_CACHE_SHIFT 6
  11. #else
  12. /* Both EV4 and EV5 are write-through, read-allocate,
  13. direct-mapped, physical.
  14. */
  15. # define L1_CACHE_BYTES 32
  16. # define L1_CACHE_SHIFT 5
  17. #endif
  18. #define SMP_CACHE_BYTES L1_CACHE_BYTES
  19. #endif