MFi386: r257858 (by kib)
Fix signal delivery for the iBCS2 binaries.
This commit is contained in:
parent
f53d329e7c
commit
0f70759c12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user