cache.h 648 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Cache operations
  4. *
  5. * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
  6. * Copyright (C) 2007-2009 PetaLogix
  7. * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au>
  8. */
  9. #ifndef _ASM_MICROBLAZE_CACHE_H
  10. #define _ASM_MICROBLAZE_CACHE_H
  11. #include <asm/registers.h>
  12. #define L1_CACHE_SHIFT 5
  13. /* word-granular cache in microblaze */
  14. #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
  15. #define SMP_CACHE_BYTES L1_CACHE_BYTES
  16. /* MS be sure that SLAB allocates aligned objects */
  17. #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
  18. #define ARCH_SLAB_MINALIGN L1_CACHE_BYTES
  19. #endif /* _ASM_MICROBLAZE_CACHE_H */