Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 05:40:14 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264687 - head/sys/pc98/pc98
Message-ID:  <201404200540.s3K5eEoG053417@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404200540.s3K5eEoG053417>