diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-27 10:46:56 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-27 10:46:56 +0000 |
commit | 889b6c4c11911ab87d3470d9ffc9b559183a51dc (patch) | |
tree | a0b782bd0d9d1f1f65e79e0ecc9bf21bb0aa924c /sys/arch/i386/isa/npx.c | |
parent | d8270b44b1f22944ea7aaaf8e11b8ddc7fbf94aa (diff) |
Add:
* GPL_MATH_EMULATE: fpemul
* ALWAYS_MATH_EMULATE: causes npx probe to always fail.
* better fp context in struct pcb.
Diffstat (limited to 'sys/arch/i386/isa/npx.c')
-rw-r--r-- | sys/arch/i386/isa/npx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index 0e2d5b84a0b..309ee672032 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -172,6 +172,7 @@ static inline int npxprobe1(ia) struct isa_attach_args *ia; { +#ifndef ALWAYS_MATH_EMULATE int control; int status; @@ -228,6 +229,7 @@ npxprobe1(ia) return 1; } } +#endif /* * Probe failed. There is no usable FPU. */ @@ -397,7 +399,7 @@ npxintr(arg) * Find the address of npxproc's savefpu. This is not necessarily * the one in curpcb. */ - addr = &p->p_addr->u_pcb.pcb_savefpu; + addr = &p->p_addr->u_pcb.pcb_savefpu.npx; /* * Save state. This does an implied fninit. It had better not halt * the cpu or we'll hang. |