summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-19 18:48:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-19 18:48:45 +0000
commit3f5da1a40b89c85980651213c743cbe3169e65d2 (patch)
treeaead262a3c948b290d7123eb0e5670f60a787334 /sys/arch
parent2b0ea5c08029098fd0f09bd5bfbfa064013cf668 (diff)
simplify rsp setting in sendsig
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 4ea8fd9fcec..003d48cea4f 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.5 2004/02/13 03:37:10 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.6 2004/02/19 18:48:44 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -653,7 +653,7 @@ sendsig(sig_t catcher, int sig, int mask, u_long code, int type,
tf->tf_rip = (u_int64_t)p->p_sigcode;
tf->tf_cs = LSEL(LUCODE_SEL, SEL_UPL);
tf->tf_rflags &= ~(PSL_T|PSL_VM|PSL_AC);
- tf->tf_rsp = sp - sss;
+ tf->tf_rsp = scp;
tf->tf_ss = LSEL(LUDATA_SEL, SEL_UPL);
#ifdef DEBUG