patch-2.1.30 linux/include/asm-sparc64/cache.h
Next file: linux/include/asm-sparc64/checksum.h
Previous file: linux/include/asm-sparc64/byteorder.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Mar 20 16:45:06 1997
- Orig file:
v2.1.29/linux/include/asm-sparc64/cache.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.29/linux/include/asm-sparc64/cache.h linux/include/asm-sparc64/cache.h
@@ -0,0 +1,13 @@
+/*
+ * include/asm-sparc64/cache.h
+ */
+#ifndef __ARCH_SPARC64_CACHE_H
+#define __ARCH_SPARC64_CACHE_H
+
+/* FIXME: Should look at this soon */
+/* bytes per L1 cache line */
+#define L1_CACHE_BYTES 32 /* a guess */
+
+#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