summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/npx.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-05-28 02:03:13 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-05-28 02:03:13 +0000
commitbf6b4844d33a45b13bd4ffe69857c1b47fba93b4 (patch)
treea9d0c54100cd9435a1b34d1ae77128d74763952c /sys/i386/include/npx.h
parentfecc90c6467c0c3892b79f81ed9501a4672c8815 (diff)
downloadFreeBSD-src-bf6b4844d33a45b13bd4ffe69857c1b47fba93b4.zip
FreeBSD-src-bf6b4844d33a45b13bd4ffe69857c1b47fba93b4.tar.gz
When creating a new thread, inherit floating-point environment from
current thread, this is required by POSIX pthread_create document.
Diffstat (limited to 'sys/i386/include/npx.h')
-rw-r--r--sys/i386/include/npx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/include/npx.h b/sys/i386/include/npx.h
index 894b06d..792f75a 100644
--- a/sys/i386/include/npx.h
+++ b/sys/i386/include/npx.h
@@ -138,6 +138,8 @@ union savefpu {
#ifdef _KERNEL
+struct thread;
+
#define IO_NPX 0x0F0 /* Numeric Coprocessor */
#define IO_NPXSIZE 16 /* 80387/80487 NPX registers */
@@ -155,6 +157,8 @@ void npxinit(u_short control);
void npxsave(union savefpu *addr);
void npxsetregs(struct thread *td, union savefpu *addr);
int npxtrap(void);
+void npx_fork_thread(struct thread *td, struct thread *newtd);
+
#endif
#endif /* !_MACHINE_NPX_H_ */
OpenPOWER on IntegriCloud