diff options
| author | drochner <drochner@NetBSD.org> | 2006-04-12 21:48:08 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2006-04-12 21:48:08 +0000 |
| commit | 7b1c6fd9ffbaf3fb99ea46ae1199c06c7acef2ad (patch) | |
| tree | 6520219ace7b8eca94a916a6e11f7f35cb18fbb7 | |
| parent | 176b72244c4fae065b9006cc0a6b2e836530b656 (diff) | |
second step to retire the useless i386_set_ioperm/i386_get_ioperm
calls: remove declarations from public headers
(it still needs to be built for binary compatibility; one might consider
establishing a separate "compat" department as libc does, but these
little wrapper functions aren't worth the effort yet)
| -rw-r--r-- | lib/libarch/i386/i386_get_ioperm.c | 6 | ||||
| -rw-r--r-- | lib/libarch/i386/i386_set_ioperm.c | 6 | ||||
| -rw-r--r-- | sys/arch/i386/include/sysarch.h | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/lib/libarch/i386/i386_get_ioperm.c b/lib/libarch/i386/i386_get_ioperm.c index ab1c4cd4449..b943e452416 100644 --- a/lib/libarch/i386/i386_get_ioperm.c +++ b/lib/libarch/i386/i386_get_ioperm.c @@ -1,4 +1,4 @@ -/* $NetBSD: i386_get_ioperm.c,v 1.4 1998/02/25 21:24:56 perry Exp $ */ +/* $NetBSD: i386_get_ioperm.c,v 1.5 2006/04/12 21:48:08 drochner Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,6 +41,8 @@ #include <machine/sysarch.h> +int i386_get_ioperm(u_long *); + int i386_get_ioperm(iomap) u_long *iomap; @@ -49,5 +51,5 @@ i386_get_ioperm(iomap) p.iomap = iomap; - return sysarch(I386_GET_IOPERM, (void *)&p); + return sysarch(I386_GET_IOPERM, &p); } diff --git a/lib/libarch/i386/i386_set_ioperm.c b/lib/libarch/i386/i386_set_ioperm.c index 3919770a1a5..37e0c73ae31 100644 --- a/lib/libarch/i386/i386_set_ioperm.c +++ b/lib/libarch/i386/i386_set_ioperm.c @@ -1,4 +1,4 @@ -/* $NetBSD: i386_set_ioperm.c,v 1.4 1998/02/25 21:24:56 perry Exp $ */ +/* $NetBSD: i386_set_ioperm.c,v 1.5 2006/04/12 21:48:08 drochner Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,6 +41,8 @@ #include <machine/sysarch.h> +int i386_set_ioperm(u_long *); + int i386_set_ioperm(iomap) u_long *iomap; @@ -49,5 +51,5 @@ i386_set_ioperm(iomap) p.iomap = iomap; - return sysarch(I386_SET_IOPERM, (void *)&p); + return sysarch(I386_SET_IOPERM, &p); } diff --git a/sys/arch/i386/include/sysarch.h b/sys/arch/i386/include/sysarch.h index 9486a1405e6..f444782f6c9 100644 --- a/sys/arch/i386/include/sysarch.h +++ b/sys/arch/i386/include/sysarch.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysarch.h,v 1.16 2005/12/26 19:23:59 perry Exp $ */ +/* $NetBSD: sysarch.h,v 1.17 2006/04/12 21:48:08 drochner Exp $ */ #ifndef _I386_SYSARCH_H_ #define _I386_SYSARCH_H_ @@ -96,8 +96,6 @@ __BEGIN_DECLS int i386_get_ldt(int, union descriptor *, int); int i386_set_ldt(int, union descriptor *, int); int i386_iopl(int); -int i386_get_ioperm(u_long *); -int i386_set_ioperm(u_long *); int i386_pmc_info(struct i386_pmc_info_args *); int i386_pmc_startstop(struct i386_pmc_startstop_args *); int i386_pmc_read(struct i386_pmc_read_args *); |
