MFC r257858:

Fix signal delivery for the iBCS2 binaries.

Approved by:	re (gjb)
This commit is contained in:
kib 2013-11-15 07:09:24 +00:00
parent ead14302e7
commit bc035b6554

View File

@ -757,6 +757,8 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
regs->tf_esp = (int)sfp;
regs->tf_eip = p->p_sysent->sv_sigcode_base;
if (regs->tf_eip == 0)
regs->tf_eip = p->p_sysent->sv_psstrings - szsigcode;
regs->tf_eflags &= ~(PSL_T | PSL_D);
regs->tf_cs = _ucodesel;
regs->tf_ds = _udatasel;