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