patch-2.4.0-test2 linux/include/asm-alpha/cache.h
Next file: linux/include/asm-alpha/console.h
Previous file: linux/fs/umsdos/namei.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Wed Jun 21 22:30:59 2000
- Orig file:
v2.4.0-test1/linux/include/asm-alpha/cache.h
- Orig date:
Tue Dec 7 09:32:49 1999
diff -u --recursive --new-file v2.4.0-test1/linux/include/asm-alpha/cache.h linux/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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)