MFi386: r257858 (by kib)

Fix signal delivery for the iBCS2 binaries.
This commit is contained in:
Yoshihiro Takahashi 2014-04-20 05:40:13 +00:00
parent f53d329e7c
commit 0f70759c12

View File

@ -694,6 +694,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;