diff options
| author | christos <christos@NetBSD.org> | 2004-11-06 23:22:43 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2004-11-06 23:22:43 +0000 |
| commit | aefec4290d9fd9e83eaf8b2b4ada33ff37ecaedb (patch) | |
| tree | 426beea8006989f4f68d1a3bfe8ed59507744c92 | |
| parent | 1049f86396250c34e6918a7d8919f48e309c2306 (diff) | |
Don't use "int" to represent lengths; this is what size_t is for. This
does not change the ABI since we don't have 64 bit mips yet.
| -rw-r--r-- | sys/arch/mips/include/cachectl.h | 6 | ||||
| -rw-r--r-- | sys/arch/mips/include/sysarch.h | 6 | ||||
| -rw-r--r-- | sys/arch/mips/mips/sys_machdep.c | 12 |
3 files changed, 13 insertions, 11 deletions
diff --git a/sys/arch/mips/include/cachectl.h b/sys/arch/mips/include/cachectl.h index f4133b1de0e..eb250b99556 100644 --- a/sys/arch/mips/include/cachectl.h +++ b/sys/arch/mips/include/cachectl.h @@ -1,4 +1,4 @@ -/* $NetBSD: cachectl.h,v 1.5 2002/03/05 14:08:43 simonb Exp $ */ +/* $NetBSD: cachectl.h,v 1.6 2004/11/06 23:22:43 christos Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -60,7 +60,7 @@ int cachectl __P((void *addr, int nbytes, int cacheop)); #define UNCACHEABLE 0x01 /* make page(s) uncacheable */ #ifdef _KERNEL -int mips_user_cachectl(struct proc *, vaddr_t, int, int); -int mips_user_cacheflush(struct proc *, vaddr_t, int, int); +int mips_user_cachectl(struct proc *, vaddr_t, size_t, int); +int mips_user_cacheflush(struct proc *, vaddr_t, size_t, int); #endif #endif /* _MIPS_CACHECTL_H_ */ diff --git a/sys/arch/mips/include/sysarch.h b/sys/arch/mips/include/sysarch.h index 6f585d667ee..469958e35cf 100644 --- a/sys/arch/mips/include/sysarch.h +++ b/sys/arch/mips/include/sysarch.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysarch.h,v 1.6 2003/09/11 09:40:13 kleink Exp $ */ +/* $NetBSD: sysarch.h,v 1.7 2004/11/06 23:22:43 christos Exp $ */ #ifndef _MIPS_SYSARCH_H_ #define _MIPS_SYSARCH_H_ @@ -11,13 +11,13 @@ struct mips_cacheflush_args { vaddr_t va; - int nbytes; + size_t nbytes; int whichcache; }; struct mips_cachectl_args { vaddr_t va; - int nbytes; + size_t nbytes; int ctl; }; diff --git a/sys/arch/mips/mips/sys_machdep.c b/sys/arch/mips/mips/sys_machdep.c index 28eb1424bc7..22847a866ba 100644 --- a/sys/arch/mips/mips/sys_machdep.c +++ b/sys/arch/mips/mips/sys_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: sys_machdep.c,v 1.26 2004/10/21 03:15:13 simonb Exp $ */ +/* $NetBSD: sys_machdep.c,v 1.27 2004/11/06 23:22:43 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.26 2004/10/21 03:15:13 simonb Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.27 2004/11/06 23:22:43 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -104,7 +104,8 @@ int mips_user_cacheflush(p, va, nbytes, whichcache) struct proc *p; vaddr_t va; - int nbytes, whichcache; + size_t nbytes; + int whichcache; { /* validate the cache we're going to flush. */ @@ -125,7 +126,7 @@ mips_user_cacheflush(p, va, nbytes, whichcache) #else void * uncached_physaddr; - u_int len; + size_t len; /* * Invalidate each page in the virtual-address range, @@ -157,7 +158,8 @@ int mips_user_cachectl(p, va, nbytes, cachectl) struct proc *p; vaddr_t va; - int nbytes, cachectl; + size_t nbytes; + int cachectl; { /* validate the cache we're going to flush. */ switch (cachectl) { |
