summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2006-06-05 11:53:36 +0000
committernyan <nyan@FreeBSD.org>2006-06-05 11:53:36 +0000
commitc0977a00c1d0d888074ac6de88103de02ad262c8 (patch)
tree8241298f2f65e7f6ffb52283f53a748b0e2bbbd9 /sys/pc98
parent1c26f878c2f02f1c0e60f747580559b283a1d8db (diff)
downloadFreeBSD-src-c0977a00c1d0d888074ac6de88103de02ad262c8.zip
FreeBSD-src-c0977a00c1d0d888074ac6de88103de02ad262c8.tar.gz
MFi386: revisions 1.627, 1.628 and 1.629.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 6554fc6..5a686ad 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -2540,6 +2540,10 @@ set_fpcontext(struct thread *td, const mcontext_t *mcp)
bcopy(&mcp->mc_fpstate, addr, sizeof(mcp->mc_fpstate));
}
#ifdef DEV_NPX
+#ifdef CPU_ENABLE_SSE
+ if (cpu_fxsr)
+ addr->sv_xmm.sv_env.en_mxcsr &= cpu_mxcsr_mask;
+#endif
/*
* XXX we violate the dubious requirement that npxsetregs()
* be called with interrupts disabled.
OpenPOWER on IntegriCloud