patch-2.1.23 linux/include/asm-i386/cache.h

Next file: linux/include/asm-i386/irq.h
Previous file: linux/include/asm-alpha/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/include/asm-i386/cache.h linux/include/asm-i386/cache.h
@@ -0,0 +1,16 @@
+/*
+ * include/asm-i386/cache.h
+ */
+#ifndef __ARCH_I386_CACHE_H
+#define __ARCH_I386_CACHE_H
+
+/* bytes per L1 cache line */
+#if    CPU==586 || CPU==686
+#define        L1_CACHE_BYTES  32
+#else
+#define        L1_CACHE_BYTES  16
+#endif
+
+#define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov