Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 We don't need syscall_fancy() unless KTRA...



details:   https://anonhg.NetBSD.org/src/rev/523958b977ca
branches:  trunk
changeset: 587966:523958b977ca
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Feb 04 14:11:34 2006 +0000

description:
We don't need syscall_fancy() unless KTRACE or SYSTRACE is defined.
There also must be a better way to define these (almost equivalent) routines,
not to mention the one in mach_syscall.c

diffstat:

 sys/arch/i386/i386/syscall.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 7a8b473bcc67 -r 523958b977ca sys/arch/i386/i386/syscall.c
--- a/sys/arch/i386/i386/syscall.c      Sat Feb 04 14:01:08 2006 +0000
+++ b/sys/arch/i386/i386/syscall.c      Sat Feb 04 14:11:34 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.32 2005/12/11 12:17:41 christos Exp $    */
+/*     $NetBSD: syscall.c,v 1.33 2006/02/04 14:11:34 dsl Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.32 2005/12/11 12:17:41 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.33 2006/02/04 14:11:34 dsl Exp $");
 
 #include "opt_syscall_debug.h"
 #include "opt_vm86.h"
@@ -197,6 +197,7 @@
        userret(l);
 }
 
+#if defined(KTRACE) || defined(SYSTRACE)
 void
 syscall_fancy(frame)
        struct trapframe *frame;
@@ -299,6 +300,7 @@
 
        userret(l);
 }
+#endif
 
 #ifdef VM86
 void



Home | Main Index | Thread Index | Old Index