2007-11-16 19:06:07 +08:00
|
|
|
/* cache.h: Cache specific code for the Sparc. These include flushing
|
2005-04-17 06:20:36 +08:00
|
|
|
* and direct tag/data line access.
|
|
|
|
*
|
2007-11-16 19:06:07 +08:00
|
|
|
* Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SPARC_CACHE_H
|
|
|
|
#define _SPARC_CACHE_H
|
|
|
|
|
2010-05-19 06:23:58 +08:00
|
|
|
#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#define L1_CACHE_SHIFT 5
|
|
|
|
#define L1_CACHE_BYTES 32
|
|
|
|
|
2007-11-16 19:06:07 +08:00
|
|
|
#ifdef CONFIG_SPARC32
|
|
|
|
#define SMP_CACHE_BYTES_SHIFT 5
|
|
|
|
#else
|
|
|
|
#define SMP_CACHE_BYTES_SHIFT 6
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT)
|
|
|
|
|
2010-02-20 08:03:44 +08:00
|
|
|
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
|
2007-11-16 19:06:07 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* !(_SPARC_CACHE_H) */
|