diff options
author | jhb <jhb@FreeBSD.org> | 2009-03-05 18:32:43 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-03-05 18:32:43 +0000 |
commit | b2f198587d468439e294bea73d2a87118047ed85 (patch) | |
tree | 591ef9b555ccb27b9d19a7a9e4bcc6b7e1ced1f9 /sys/i386/include/npx.h | |
parent | 02ea6bca591c13b528ae6dc9a0f8ba19ee8d1e38 (diff) | |
download | FreeBSD-src-b2f198587d468439e294bea73d2a87118047ed85.zip FreeBSD-src-b2f198587d468439e294bea73d2a87118047ed85.tar.gz |
Some cleanups to the i386 FPU support:
- Remove the control word parameter to npxinit(). It was always set
to __INITIAL_NPXCW__.
- Remove npx_cleanstate_ready as the cleanstate is always initalized
when it is used.
- Improve the handling of the case when the FPU isn't present. Now
the npx0 device no longer succeeds in its probe so all of npx_attach()
is skipped. Also, we allow this case with SMP (though that shouldn't
actually occur as all i386 systems that support SMP have FPUs) now.
SMP was only an issue back when we had an FPU emulator which was not
per-CPU.
- MFamd64: Clear some of the state in npx_cleanstate rather than leaving
it as garbage.
- MFamd64: When a user thread first uses the FPU, use npx_cleanstate for
the initial FPU state.
Reviewed by: bde
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r-- | sys/i386/include/npx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h index 11f1034..e9811b3 100644 --- a/sys/i386/include/npx.h +++ b/sys/i386/include/npx.h @@ -151,7 +151,7 @@ void npxdrop(void); void npxexit(struct thread *td); int npxformat(void); int npxgetregs(struct thread *td, union savefpu *addr); -void npxinit(u_short control); +void npxinit(void); void npxsave(union savefpu *addr); void npxsetregs(struct thread *td, union savefpu *addr); int npxtrap(void); |