summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-04 22:44:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-03-04 22:44:11 +0000
commit85ebe2e9e779c39178062b1cdc8ff8c5b127d9c7 (patch)
treeae1208a1944c9d4fe285dffce1158a630985379f
parent46ba4597ea2481701a58ee9b2ef99c0315d741cb (diff)
please gcc 2.8
-rw-r--r--sys/arch/i386/i386/vm86.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/vm86.c b/sys/arch/i386/i386/vm86.c
index 8fd4467e48c..0cba1bc3714 100644
--- a/sys/arch/i386/i386/vm86.c
+++ b/sys/arch/i386/i386/vm86.c
@@ -239,6 +239,7 @@ vm86_return(p, retval)
struct proc *p;
int retval;
{
+ union sigval sv;
/*
* We can't set the virtual flags in our real trap frame,
@@ -253,7 +254,8 @@ vm86_return(p, retval)
sigexit(p, SIGILL);
/* NOTREACHED */
}
- trapsignal(p, SIGURG, retval, 0, 0);
+ sv.sival_int = 0;
+ trapsignal(p, SIGURG, retval, 0, sv);
}
#define CLI 0xFA
@@ -278,6 +280,8 @@ vm86_gpfault(p, type)
int type;
{
struct trapframe *tf = p->p_md.md_regs;
+ union sigval sv;
+
/*
* we want to fetch some stuff from the current user virtual
* address space for checking. remember that the frame's
@@ -368,8 +372,10 @@ vm86_gpfault(p, type)
goto bad;
}
- if (trace && tf->tf_eflags & PSL_VM)
- trapsignal(p, SIGTRAP, T_TRCTRAP, TRAP_TRACE, 0);
+ if (trace && tf->tf_eflags & PSL_VM) {
+ sv.sival_int = 0;
+ trapsignal(p, SIGTRAP, T_TRCTRAP, TRAP_TRACE, sv);
+ }
return;
bad: