diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-07-30 21:30:32 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-07-30 21:30:32 +0000 |
commit | bf5a14ff2243191caef62f783bf97e3f2e012687 (patch) | |
tree | 26052a969090afd5343dcc6e1c967368f1ea5c7a /sys/gnu/arch/i386/fpemul/errors.c | |
parent | 1161c082493da91e94a0baa70d7c7905371f604a (diff) |
Change:
#define I387 (*(union i387_union *)&(((struct pcb *)curproc->p_addr)->pcb_savefpu.gplemu))
To:
#define I387 (curproc->p_addr->u_pcb.pcb_savefpu.gplemu)
(and add a few includes of sys/user.h to make it work).
Diffstat (limited to 'sys/gnu/arch/i386/fpemul/errors.c')
-rw-r--r-- | sys/gnu/arch/i386/fpemul/errors.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/gnu/arch/i386/fpemul/errors.c b/sys/gnu/arch/i386/fpemul/errors.c index 36c4847a4a1..69cb43ad455 100644 --- a/sys/gnu/arch/i386/fpemul/errors.c +++ b/sys/gnu/arch/i386/fpemul/errors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: errors.c,v 1.2 2003/01/09 22:27:11 miod Exp $ */ +/* $OpenBSD: errors.c,v 1.3 2003/07/30 21:30:31 jason Exp $ */ /* * errors.c * @@ -75,6 +75,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> +#include <sys/user.h> #include <machine/cpu.h> #include <machine/pcb.h> |