From d41ec12419fb4532031757fede7baa1338382860 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sat, 14 Aug 2004 00:14:12 +0000 Subject: bad bad typo + thinko made ktrace broken in smp. ok deraadt@ --- sys/arch/i386/i386/trap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 5a5541184b6..ca0713f6da1 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.64 2004/07/02 16:29:55 niklas Exp $ */ +/* $OpenBSD: trap.c,v 1.65 2004/08/14 00:14:11 niklas Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -856,15 +856,14 @@ child_return(arg) tf->tf_eax = 0; tf->tf_eflags &= ~PSL_C; -#ifdef notyet KERNEL_PROC_UNLOCK(p); -#endif userret(p, tf->tf_eip, 0); #ifdef KTRACE - if (KTRPOINT(p, KTR_SYSRET)) + if (KTRPOINT(p, KTR_SYSRET)) { KERNEL_PROC_LOCK(p); ktrsysret(p, SYS_fork, 0, 0); KERNEL_PROC_UNLOCK(p); + } #endif } -- cgit v1.2.3