patch-2.3.48 linux/include/asm-mips/cache.h

Next file: linux/include/asm-mips/checksum.h
Previous file: linux/include/asm-mips/bugs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/asm-mips/cache.h linux/include/asm-mips/cache.h
@@ -1,14 +1,21 @@
-/*
- * include/asm-mips/cache.h
+/* $Id: cache.h,v 1.4 2000/02/04 07:40:53 ralf Exp $
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 1997, 1998, 1999 Ralf Baechle
+ * Copyright (C) 1999 Silicon Graphics, Inc.
  */
-#ifndef __ASM_MIPS_CACHE_H
-#define __ASM_MIPS_CACHE_H
+#ifndef _ASM_CACHE_H
+#define _ASM_CACHE_H
 
-/* bytes per L1 cache line */
-#define        L1_CACHE_BYTES  32      /* a guess */
+#include <linux/config.h>
 
-#define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
+#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_R6000)
+#define L1_CACHE_BYTES	16
+#else
+#define L1_CACHE_BYTES  32	/* A guess */
+#endif
 
-#define        SMP_CACHE_BYTES L1_CACHE_BYTES
-
-#endif /* __ASM_MIPS_CACHE_H */
+#endif /* _ASM_CACHE_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)