--- linux/include/asm-alpha/cache.h.orig Wed Mar 22 21:07:52 2000 +++ linux/include/asm-alpha/cache.h Wed Mar 22 21:03:40 2000 @@ -1,12 +1,35 @@ /* * include/asm-alpha/cache.h + * */ + #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 + +/* L1_CACHE_BYTES is Bytes per L1 (data) cache line. */ + +/* + * EV5 has a dual-read-ported, single-write-ported, 8KB data cache. + * It is a write-through, read-allocate, direct-mapped, physical cache + * with 32-byte blocks. + * See 21164 and 21164PC Alpha Microprocessor Data Sheets. + */ + +/* + * EV6 has a virtually-indexed, physically-tagged two-way associative + * write-back, read/write allocate 64KB data cache. + * See 21264 Alpha Microprocessor Data Sheet at + * http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html + * + * Avoid touching data that is 32KB apart. + * The 21264 can have only one memory operation in progress at a time + * that maps to any one cache index. Otherwise a replay trap may result. + * See 21264 Compilers Writers Guide for more information. + */ + +#define L1_CACHE_BYTES CONFIG_L1_CACHELINE #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #define SMP_CACHE_BYTES L1_CACHE_BYTES