patch-2.4.20 linux-2.4.20/include/asm-mips64/cache.h
Next file: linux-2.4.20/include/asm-mips64/checksum.h
Previous file: linux-2.4.20/include/asm-mips64/bootinfo.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-mips64/cache.h
- Orig date:
Fri Aug 2 17:39:45 2002
diff -urN linux-2.4.19/include/asm-mips64/cache.h linux-2.4.20/include/asm-mips64/cache.h
@@ -3,7 +3,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1997, 1998, 1999 Ralf Baechle
+ * Copyright (C) 1997, 98, 99, 2000 Ralf Baechle
* Copyright (C) 1999 Silicon Graphics, Inc.
*/
#ifndef _ASM_CACHE_H
@@ -23,7 +23,17 @@
};
#endif /* !__ASSEMBLY__ */
-/* bytes per L1 cache line */
-#define L1_CACHE_BYTES (1 << CONFIG_L1_CACHE_SHIFT)
+/*
+ * Flag definitions
+ */
+#define MIPS_CACHE_NOT_PRESENT 0x00000001
+
+#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_R6000) || defined(CONFIG_CPU_TX39XX)
+#define L1_CACHE_BYTES 16
+#else
+#define L1_CACHE_BYTES 32 /* A guess */
+#endif
+
+#define SMP_CACHE_BYTES L1_CACHE_BYTES
#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)