Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Make kernels without KTRACE work.



details:   https://anonhg.NetBSD.org/src/rev/418c39e9ffdd
branches:  trunk
changeset: 536232:418c39e9ffdd
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Sep 11 20:19:45 2002 +0000

description:
Make kernels without KTRACE work.

diffstat:

 sys/arch/sparc64/sparc64/trap.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r f3752a6eb2bc -r 418c39e9ffdd sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Wed Sep 11 19:46:40 2002 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Wed Sep 11 20:19:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.81 2002/06/25 17:37:03 eeh Exp $ */
+/*     $NetBSD: trap.c,v 1.82 2002/09/11 20:19:45 martin Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -1956,6 +1956,8 @@
                /* Need to convert from int64 to int32 or we lose */
                for (argp = &args.i[0]; i--;) 
                        *argp++ = *ap++;
+
+#ifdef KTRACE
                if (KTRPOINT(p, KTR_SYSCALL)) {
 #if defined(__arch64__)
                        register_t temp[8];
@@ -1969,6 +1971,7 @@
                        ktrsyscall(p, code, (register_t *)&args.i);
 #endif
                }
+#endif /* KTRACE */
                if (error) {
                        goto bad;
                }



Home | Main Index | Thread Index | Old Index