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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to