svn commit: r258160 - stable/9/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Fri Nov 15 07:14:02 UTC 2013


Author: kib
Date: Fri Nov 15 07:14:01 2013
New Revision: 258160
URL: http://svnweb.freebsd.org/changeset/base/258160

Log:
  MFC r257858:
  Fix signal delivery for the iBCS2 binaries.

Modified:
  stable/9/sys/i386/i386/machdep.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/i386/i386/machdep.c
==============================================================================
--- stable/9/sys/i386/i386/machdep.c	Fri Nov 15 07:10:42 2013	(r258159)
+++ stable/9/sys/i386/i386/machdep.c	Fri Nov 15 07:14:01 2013	(r258160)
@@ -758,6 +758,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-stable-9 mailing list