18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* cache.h: Cache specific code for the Sparc. These include flushing 38c2ecf20Sopenharmony_ci * and direct tag/data line access. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net) 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _SPARC_CACHE_H 98c2ecf20Sopenharmony_ci#define _SPARC_CACHE_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define L1_CACHE_SHIFT 5 148c2ecf20Sopenharmony_ci#define L1_CACHE_BYTES 32 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifdef CONFIG_SPARC32 178c2ecf20Sopenharmony_ci#define SMP_CACHE_BYTES_SHIFT 5 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci#define SMP_CACHE_BYTES_SHIFT 6 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define __read_mostly __section(".data..read_mostly") 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif /* !(_SPARC_CACHE_H) */ 27