summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 5fa6cf4743d..c6ff5ee3ce9 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.90 2010/07/01 17:30:27 tedu Exp $ */
+/* $OpenBSD: trap.c,v 1.91 2010/07/01 19:47:07 tedu Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -597,6 +597,8 @@ syscall(struct trapframe *frame)
nsys = p->p_emul->e_nsysent;
callp = p->p_emul->e_sysent;
+ params = (caddr_t)frame->tf_esp + sizeof(int);
+
#ifdef VM86
/*
* VM86 mode application found our syscall trap gate by accident; let