Files
OrangePi_CM5/arch/sparc/include/asm/cache.h
T

25 lines
610 B
C
Raw Normal View History

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