summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2014-04-20 05:40:13 +0000
committernyan <nyan@FreeBSD.org>2014-04-20 05:40:13 +0000
commit37c4ec75f2e8d9dcef869de3995f13fd394e8c5a (patch)
tree20152017b43c44147de168be0171588d2e44538a /sys/pc98
parentd36f7abf6705b4e52f3c7c0ee33bd8874b124aa0 (diff)
downloadFreeBSD-src-37c4ec75f2e8d9dcef869de3995f13fd394e8c5a.zip
FreeBSD-src-37c4ec75f2e8d9dcef869de3995f13fd394e8c5a.tar.gz
MFi386: r257858 (by kib)
Fix signal delivery for the iBCS2 binaries.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index b011354..b9c6a4e 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -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;
OpenPOWER on IntegriCloud