summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-09-15 21:14:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-09-15 21:14:28 +0000
commit8febb36b3c2de4173ea6dfcd221fe8d00eaadce8 (patch)
treecedd3975bf805bd83930892b072f4287426434ec /sys/arch/alpha
parent7a9949a766efb61c185c9bf2f8f4c6b31008d9b5 (diff)
In syscall(), do not recompute the struct proc * after the syscall has
succeeded. This used to be necessary for fork(), when returning in the child, but we return in the child in child_return() which does TRT. ok art@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/trap.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c
index 9212ffa8f47..78cc4274060 100644
--- a/sys/arch/alpha/alpha/trap.c
+++ b/sys/arch/alpha/alpha/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.47 2005/09/15 21:09:27 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.48 2005/09/15 21:14:25 miod Exp $ */
/* $NetBSD: trap.c,v 1.52 2000/05/24 16:48:33 thorpej Exp $ */
/*-
@@ -694,15 +694,9 @@ syscall(code, framep)
break;
}
- /*
- * Reinitialize proc pointer `p' as it may be different
- * if this is a child returning from fork syscall.
- */
- p = curproc;
#ifdef SYSCALL_DEBUG
scdebug_ret(p, code, error, rval);
#endif
-
userret(p, framep->tf_regs[FRAME_PC], sticks);
#ifdef KTRACE
if (KTRPOINT(p, KTR_SYSRET))