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/reg_compare.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/reg_compare.c')
-rw-r--r-- | sys/gnu/arch/i386/fpemul/reg_compare.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/gnu/arch/i386/fpemul/reg_compare.c b/sys/gnu/arch/i386/fpemul/reg_compare.c index 3da56eb9007..1130326ca2c 100644 --- a/sys/gnu/arch/i386/fpemul/reg_compare.c +++ b/sys/gnu/arch/i386/fpemul/reg_compare.c @@ -1,4 +1,4 @@ -/* $OpenBSD: reg_compare.c,v 1.1 1996/08/27 10:32:57 downsj Exp $ */ +/* $OpenBSD: reg_compare.c,v 1.2 2003/07/30 21:30:31 jason Exp $ */ /* * reg_compare.c * @@ -67,6 +67,7 @@ #include <sys/param.h> #include <sys/proc.h> #include <sys/systm.h> +#include <sys/user.h> #include <machine/cpu.h> #include <machine/pcb.h> |