summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1994-08-24 11:45:19 +0000
committersos <sos@FreeBSD.org>1994-08-24 11:45:19 +0000
commit348c6c2277004de959cf7219dda0bac5477b17ad (patch)
tree15de6b6c12e313c9e9bc062ca806a5abfc4d5276
parenta1df6e49d52a055e431b9f0e794fd9befb32edd2 (diff)
downloadFreeBSD-src-348c6c2277004de959cf7219dda0bac5477b17ad.zip
FreeBSD-src-348c6c2277004de959cf7219dda0bac5477b17ad.tar.gz
Changes preparing for iBCS2 support
Reviewed by: Submitted by:
-rw-r--r--sys/amd64/amd64/machdep.c9
-rw-r--r--sys/i386/i386/machdep.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 8557739..ce6863c 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.54 1994/08/19 11:45:15 davidg Exp $
+ * $Id: machdep.c,v 1.55 1994/08/20 16:02:57 davidg Exp $
*/
#include "npx.h"
@@ -57,6 +57,7 @@
#include <sys/mbuf.h>
#include <sys/msgbuf.h>
#include <sys/ioctl.h>
+#include <sys/sysent.h>
#include <sys/tty.h>
#include <sys/sysctl.h>
@@ -510,6 +511,12 @@ sendsig(catcher, sig, mask, code)
/*
* Build the argument list for the signal handler.
*/
+ if (p->p_sysent->sv_sigtbl) {
+ if (sig < p->p_sysent->sv_sigsize)
+ sig = p->p_sysent->sv_sigtbl[sig];
+ else
+ sig = p->p_sysent->sv_sigsize + 1;
+ }
fp->sf_signum = sig;
fp->sf_code = code;
fp->sf_scp = &fp->sf_sc;
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 8557739..ce6863c 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.54 1994/08/19 11:45:15 davidg Exp $
+ * $Id: machdep.c,v 1.55 1994/08/20 16:02:57 davidg Exp $
*/
#include "npx.h"
@@ -57,6 +57,7 @@
#include <sys/mbuf.h>
#include <sys/msgbuf.h>
#include <sys/ioctl.h>
+#include <sys/sysent.h>
#include <sys/tty.h>
#include <sys/sysctl.h>
@@ -510,6 +511,12 @@ sendsig(catcher, sig, mask, code)
/*
* Build the argument list for the signal handler.
*/
+ if (p->p_sysent->sv_sigtbl) {
+ if (sig < p->p_sysent->sv_sigsize)
+ sig = p->p_sysent->sv_sigtbl[sig];
+ else
+ sig = p->p_sysent->sv_sigsize + 1;
+ }
fp->sf_signum = sig;
fp->sf_code = code;
fp->sf_scp = &fp->sf_sc;
OpenPOWER on IntegriCloud