summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-11 14:38:56 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-11 14:38:56 +0000
commitaa8bb5b66ca2ecf4eda492f90c5a223f5b046f8e (patch)
tree31ad4ffde1a8118fb37d026089db55643046ed32 /sys/arch/m88k
parent6eacadb45a40963eac56a6cb8615584d3e9975ff (diff)
The first ktrace record for a newly spawned thread is a return
from a fork syscall done by the parent. Use __tfork, not rfork here to match the ktrace records for the parent (CALL __tfork, RET __tfork). ok guenther
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 9ebdf92aba3..2cad56abb1d 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.79 2011/11/16 20:50:18 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.80 2012/04/11 14:38:55 mikeb Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -1496,7 +1496,7 @@ child_return(arg)
if (KTRPOINT(p, KTR_SYSRET)) {
KERNEL_LOCK();
ktrsysret(p,
- (p->p_flag & P_THREAD) ? SYS_rfork :
+ (p->p_flag & P_THREAD) ? SYS___tfork :
(p->p_p->ps_flags & PS_PPWAIT) ? SYS_vfork : SYS_fork,
0, 0);
KERNEL_UNLOCK();