Module Name:    src
Committed By:   christos
Date:           Thu Mar 29 21:20:08 UTC 2012

Modified Files:
        src/sys/arch/mips/include: cachectl.h

Log Message:
- elide parameter tags
- make argument size_t as appropriate
- add begin/end decls


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mips/include/cachectl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/cachectl.h
diff -u src/sys/arch/mips/include/cachectl.h:1.9 src/sys/arch/mips/include/cachectl.h:1.10
--- src/sys/arch/mips/include/cachectl.h:1.9	Sat Mar 14 10:46:02 2009
+++ src/sys/arch/mips/include/cachectl.h	Thu Mar 29 17:20:08 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: cachectl.h,v 1.9 2009/03/14 14:46:02 dsl Exp $	*/
+/*	$NetBSD: cachectl.h,v 1.10 2012/03/29 21:20:08 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -34,11 +34,12 @@
 
 #include <sys/cdefs.h>
 
+__BEGIN_DECLS
 /*
  * invalidate a range of addresses from the cache.
  */
-int  _cacheflush(void *addr, int nbytes, int cacheflags);
-int  cacheflush(void *addr, int nbytes, int cacheflags);
+int  _cacheflush(void *, size_t, int);
+int  cacheflush(void *, size_t, int);
 
 					/* cacheflush() flags: */
 #define ICACHE	0x01			/* invalidate I-cache */
@@ -46,12 +47,14 @@ int  cacheflush(void *addr, int nbytes, 
 #define BCACHE	(ICACHE|DCACHE)		/* invalidate both caches, as above */
 
 
-int  cachectl(void *addr, int nbytes, int cacheop);
+int  cachectl(void *, size_t, int);
 
 					/* cachectl() cache operations: */
 #define CACHEABLE       0x00		/* make page(s) cacheable */
 #define UNCACHEABLE     0x01		/* make page(s) uncacheable */
 
+__END_DECLS
+
 #ifdef _KERNEL
 int mips_user_cachectl(struct proc *, vaddr_t, size_t, int);
 int mips_user_cacheflush(struct proc *, vaddr_t, size_t, int);

Reply via email to