patch-2.1.44 linux/include/asm-mips/cachectl.h
Next file: linux/include/asm-mips/cacheops.h
Previous file: linux/include/asm-mips/cache.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Thu Jun 26 12:33:39 1997
- Orig file:
v2.1.43/linux/include/asm-mips/cachectl.h
- Orig date:
Wed Dec 13 02:39:45 1995
diff -u --recursive --new-file v2.1.43/linux/include/asm-mips/cachectl.h linux/include/asm-mips/cachectl.h
@@ -1,37 +1,24 @@
/*
- * include/asm-mips/cachectl.h
+ * cachectl.h -- defines for MIPS cache control system calls
*
- * Written by Ralf Baechle,
- * Copyright (C) 1994 by Waldorf GMBH
+ * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
*/
#ifndef __ASM_MIPS_CACHECTL
#define __ASM_MIPS_CACHECTL
/*
- * cachectl.h -- defines for MIPS cache control system calls
- */
-
-/*
* Options for cacheflush system call
*/
#define ICACHE (1<<0) /* flush instruction cache */
#define DCACHE (1<<1) /* writeback and flush data cache */
#define BCACHE (ICACHE|DCACHE) /* flush both caches */
-#ifdef __KERNEL__
-#define CACHELINES 512 /* number of cachelines (kludgy) */
-
/*
- * Cache Operations - for use by assembler code
+ * Caching modes for the cachectl(2) call
+ *
+ * cachctl(2) is currently not supported and returns ENOSYS.
*/
-#define Index_Invalidate_I 0x00
-#define Index_Writeback_Inv_D 0x01
-#define Index_Load_Tag_D 0x05
-
-#ifndef __LANGUAGE_ASSEMBLY__
-
-extern int sys_cacheflush(void *addr, int nbytes, int cache);
+#define CACHEABLE 0 /* make pages cacheable */
+#define UNCACHEABLE 1 /* make pages uncacheable */
-#endif /* !__LANGUAGE_ASSEMBLY__ */
-#endif /* __KERNEL__ */
#endif /* __ASM_MIPS_CACHECTL */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov