diff options
Diffstat (limited to 'include/asm-alpha/cache.h')
-rw-r--r-- | include/asm-alpha/cache.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/asm-alpha/cache.h b/include/asm-alpha/cache.h index 5e46073a8..d9483efb1 100644 --- a/include/asm-alpha/cache.h +++ b/include/asm-alpha/cache.h @@ -4,9 +4,18 @@ #ifndef __ARCH_ALPHA_CACHE_H #define __ARCH_ALPHA_CACHE_H -/* Bytes per L1 (data) cache line. Both EV4 and EV5 are write-through, - read-allocate, direct-mapped, physical. */ -#define L1_CACHE_BYTES 32 +#include <linux/config.h> + +/* Bytes per L1 (data) cache line. */ +#if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EV6) +# define L1_CACHE_BYTES 32 /* should be 64, but networking dies */ +#else +/* Both EV4 and EV5 are write-through, read-allocate, + direct-mapped, physical. +*/ +# define L1_CACHE_BYTES 32 +#endif + #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #define SMP_CACHE_BYTES L1_CACHE_BYTES |