Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include - elide parameter tags
details: https://anonhg.NetBSD.org/src/rev/8c9e756bee66
branches: trunk
changeset: 778500:8c9e756bee66
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 29 21:20:08 2012 +0000
description:
- elide parameter tags
- make argument size_t as appropriate
- add begin/end decls
diffstat:
sys/arch/mips/include/cachectl.h | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r d36967085f15 -r 8c9e756bee66 sys/arch/mips/include/cachectl.h
--- a/sys/arch/mips/include/cachectl.h Thu Mar 29 20:31:49 2012 +0000
+++ b/sys/arch/mips/include/cachectl.h Thu Mar 29 21:20:08 2012 +0000
@@ -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 @@
#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);
Home |
Main Index |
Thread Index |
Old Index