Commit | Line | Data |
---|---|---|
d113fcd9 | 1 | /* cache.h: Cache specific code for the Sparc. These include flushing |
1da177e4 LT |
2 | * and direct tag/data line access. |
3 | * | |
d113fcd9 | 4 | * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net) |
1da177e4 LT |
5 | */ |
6 | ||
7 | #ifndef _SPARC_CACHE_H | |
8 | #define _SPARC_CACHE_H | |
9 | ||
273fca0e DM |
10 | #define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) |
11 | ||
1da177e4 LT |
12 | #define L1_CACHE_SHIFT 5 |
13 | #define L1_CACHE_BYTES 32 | |
1da177e4 | 14 | |
d113fcd9 DM |
15 | #ifdef CONFIG_SPARC32 |
16 | #define SMP_CACHE_BYTES_SHIFT 5 | |
17 | #else | |
18 | #define SMP_CACHE_BYTES_SHIFT 6 | |
19 | #endif | |
20 | ||
21 | #define SMP_CACHE_BYTES (1 << SMP_CACHE_BYTES_SHIFT) | |
22 | ||
54cb27a7 | 23 | #define __read_mostly __attribute__((__section__(".data..read_mostly"))) |
d113fcd9 | 24 | |
1da177e4 | 25 | #endif /* !(_SPARC_CACHE_H) */ |