diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-20 19:24:58 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-20 19:24:58 +0000 |
commit | e4a211bbec694bd8f760b505efa05e164a04da1b (patch) | |
tree | b37670277517419a042dee847a6f840ac7430b7f /sys/arch/hppa | |
parent | 09b17f5dab5c4c6d73c813f334ed5cb1d9c679aa (diff) |
Instead of copying out the signal trampoline on top of the stack, create
an uvm aobj, copy out the signal trampoline into it and share that page
among all processes for the same emulation.
This also requires us to actually be able to tell signal code where the
trampoline is located, so introduce a new field in struct proc - p_sigcode
that is a pointer to sigcode. This allows us to remove all the ugly
calculations of the signal trampoline address done in every sendsig
function in the tree (that's why so many files are changed).
Tested by various people. ok deraadt@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 03ebd577c3a..d33a565c17e 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.72 2002/05/14 00:25:02 mickey Exp $ */ +/* $OpenBSD: machdep.c,v 1.73 2002/07/20 19:24:55 art Exp $ */ /* * Copyright (c) 1999-2002 Michael Shalayeff @@ -1256,8 +1256,7 @@ sendsig(catcher, sig, mask, code, type, val) tf->tf_arg2 = tf->tf_r3 = (register_t)scp; tf->tf_arg3 = (register_t)catcher; tf->tf_sp = (register_t)scp + sss; - tf->tf_iioq_head = HPPA_PC_PRIV_USER | - ((register_t)PS_STRINGS + sizeof(struct ps_strings)); + tf->tf_iioq_head = HPPA_PC_PRIV_USER | p->p_sigcode; tf->tf_iioq_tail = tf->tf_iioq_head + 4; /* disable tracing in the trapframe */ |