Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include De __P
details: https://anonhg.NetBSD.org/src/rev/12c0f94b6cb7
branches: trunk
changeset: 586984:12c0f94b6cb7
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Jan 07 18:22:25 2006 +0000
description:
De __P
Add some 'struct xxx' definitions in the else part of a '#if 0' so that
the function prototypes later down the file don't define the structure
within the argument list.
diffstat:
sys/arch/amd64/include/sysarch.h | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diffs (61 lines):
diff -r d821bfd452b5 -r 12c0f94b6cb7 sys/arch/amd64/include/sysarch.h
--- a/sys/arch/amd64/include/sysarch.h Sat Jan 07 16:08:44 2006 +0000
+++ b/sys/arch/amd64/include/sysarch.h Sat Jan 07 18:22:25 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysarch.h,v 1.4 2005/12/11 12:16:25 christos Exp $ */
+/* $NetBSD: sysarch.h,v 1.5 2006/01/07 18:22:25 dsl Exp $ */
#ifndef _AMD64_SYSARCH_H_
#define _AMD64_SYSARCH_H_
@@ -79,6 +79,12 @@
u_int64_t time;
};
+#else
+/* Silence the build */
+struct x86_64_pmc_info_args;
+struct x86_64_pmc_startstop_args;
+struct x86_64_pmc_read_args;
+
#endif /* todo */
struct x86_64_get_mtrr_args {
@@ -93,24 +99,24 @@
#ifdef _KERNEL
-int x86_64_iopl __P((struct lwp *, void *, register_t *));
-int x86_64_get_mtrr __P((struct lwp *, void *, register_t *));
-int x86_64_set_mtrr __P((struct lwp *, void *, register_t *));
+int x86_64_iopl(struct lwp *, void *, register_t *);
+int x86_64_get_mtrr(struct lwp *, void *, register_t *);
+int x86_64_set_mtrr(struct lwp *, void *, register_t *);
#else
#include <sys/cdefs.h>
__BEGIN_DECLS
-int x86_64_get_ldt __P((void *, int));
-int x86_64_set_ldt __P((void *, int));
-int x86_64_iopl __P((int));
-int x86_64_get_ioperm __P((u_long *));
-int x86_64_set_ioperm __P((u_long *));
-int x86_64_pmc_info __P((struct x86_64_pmc_info_args *));
-int x86_64_pmc_startstop __P((struct x86_64_pmc_startstop_args *));
-int x86_64_pmc_read __P((struct x86_64_pmc_read_args *));
-int x86_64_set_mtrr __P((struct mtrr *, int *));
-int x86_64_get_mtrr __P((struct mtrr *, int *));
-int sysarch __P((int, void *));
+int x86_64_get_ldt(void *, int);
+int x86_64_set_ldt(void *, int);
+int x86_64_iopl(int);
+int x86_64_get_ioperm(u_long *);
+int x86_64_set_ioperm(u_long *);
+int x86_64_pmc_info(struct x86_64_pmc_info_args *);
+int x86_64_pmc_startstop(struct x86_64_pmc_startstop_args *);
+int x86_64_pmc_read(struct x86_64_pmc_read_args *);
+int x86_64_set_mtrr(struct mtrr *, int *);
+int x86_64_get_mtrr(struct mtrr *, int *);
+int sysarch(int, void *);
__END_DECLS
#endif
Home |
Main Index |
Thread Index |
Old Index