svn commit: r264687 - head/sys/pc98/pc98
Takahashi Yoshihiro
nyan at FreeBSD.org
Sun Apr 20 05:40:14 UTC 2014
Author: nyan
Date: Sun Apr 20 05:40:13 2014
New Revision: 264687
URL: http://svnweb.freebsd.org/changeset/base/264687
Log:
MFi386: r257858 (by kib)
Fix signal delivery for the iBCS2 binaries.
Modified:
head/sys/pc98/pc98/machdep.c
Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c Sun Apr 20 03:27:38 2014 (r264686)
+++ head/sys/pc98/pc98/machdep.c Sun Apr 20 05:40:13 2014 (r264687)
@@ -694,6 +694,8 @@ sendsig(sig_t catcher, ksiginfo_t *ksi,
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;
More information about the svn-src-all
mailing list