From 50dba10faf9fbf1dfcd7a7eb20f8083509773883 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 1 Feb 1994 10:03:43 +0000 Subject: [PATCH] Bug fix from previous WINE commit. From Jeffrey Hsu. --- sys/amd64/amd64/machdep.c | 6 +++++- sys/i386/i386/machdep.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index be452dee1851..066db2141cb6 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.31 1994/01/31 10:26:55 davidg Exp $ + * $Id: machdep.c,v 1.32 1994/01/31 23:47:25 davidg Exp $ */ #include "npx.h" @@ -478,6 +478,10 @@ sendsig(catcher, sig, mask, code) fp->sf_sc.sc_ps = regs[tEFLAGS]; regs[tESP] = (int)fp; regs[tEIP] = (int)((struct pcb *)kstack)->pcb_sigc; + regs[tCS] = _ucodesel; + regs[tDS] = _udatasel; + regs[tES] = _udatasel; + regs[tSS] = _udatasel; } /* diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index be452dee1851..066db2141cb6 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.31 1994/01/31 10:26:55 davidg Exp $ + * $Id: machdep.c,v 1.32 1994/01/31 23:47:25 davidg Exp $ */ #include "npx.h" @@ -478,6 +478,10 @@ sendsig(catcher, sig, mask, code) fp->sf_sc.sc_ps = regs[tEFLAGS]; regs[tESP] = (int)fp; regs[tEIP] = (int)((struct pcb *)kstack)->pcb_sigc; + regs[tCS] = _ucodesel; + regs[tDS] = _udatasel; + regs[tES] = _udatasel; + regs[tSS] = _udatasel; } /*