Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use the number of args in the sysent rather than ca...
details: https://anonhg.NetBSD.org/src/rev/6d41b9ab3ad4
branches: trunk
changeset: 533053:6d41b9ab3ad4
user: eeh <eeh%NetBSD.org@localhost>
date: Wed Jun 19 23:35:35 2002 +0000
description:
Use the number of args in the sysent rather than calculating it from the
sysent's argsize. It should be faster and fix 32-bit compat emulations.
diffstat:
sys/kern/kern_xxx.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 9b2ad2fc52a3 -r 6d41b9ab3ad4 sys/kern/kern_xxx.c
--- a/sys/kern/kern_xxx.c Wed Jun 19 23:32:01 2002 +0000
+++ b/sys/kern/kern_xxx.c Wed Jun 19 23:35:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_xxx.c,v 1.48 2002/05/31 01:10:35 eeh Exp $ */
+/* $NetBSD: kern_xxx.c,v 1.49 2002/06/19 23:35:35 eeh Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_xxx.c,v 1.48 2002/05/31 01:10:35 eeh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_xxx.c,v 1.49 2002/06/19 23:35:35 eeh Exp $");
#include "opt_syscall_debug.h"
@@ -118,8 +118,7 @@
printf("%ld call: %s", (long)code, em->e_syscallnames[code]);
if (scdebug & SCDEBUG_SHOWARGS) {
printf("(");
- for (i = 0; i < sy->sy_argsize / sizeof(register_t);
- i++)
+ for (i = 0; i < sy->sy_narg; i++)
printf("%s0x%lx", i == 0 ? "" : ", ",
(long)args[i]);
printf(")");
Home |
Main Index |
Thread Index |
Old Index