aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2012-09-10 13:40:08 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2012-09-18 18:52:24 -0400
commita8615af4bc3621cb01096541dafa6f68352ec2d9 (patch)
tree2385c494b946cfb55b81ceade8346ea4abac49d4 /arch/x86
parente00229819f306b1f86134095347e9187dc346bd1 (diff)
x86, fpu: remove cpu_has_xmm check in the fx_finit()
CPUs with FXSAVE but no XMM/MXCSR (Pentium II from Intel, Crusoe/TM-3xxx/5xxx from Transmeta, and presumably some of the K6 generation from AMD) ever looked at the mxcsr field during fxrstor/fxsave. So remove the cpu_has_xmm check in the fx_finit() Reported-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Link: http://lkml.kernel.org/r/1347300665-6209-6-git-send-email-suresh.b.siddha@intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/fpu-internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h
index 0ca72f0d4b41..92f3c6ed817f 100644
--- a/arch/x86/include/asm/fpu-internal.h
+++ b/arch/x86/include/asm/fpu-internal.h
@@ -109,8 +109,7 @@ static inline void fx_finit(struct i387_fxsave_struct *fx)
109{ 109{
110 memset(fx, 0, xstate_size); 110 memset(fx, 0, xstate_size);
111 fx->cwd = 0x37f; 111 fx->cwd = 0x37f;
112 if (cpu_has_xmm) 112 fx->mxcsr = MXCSR_DEFAULT;
113 fx->mxcsr = MXCSR_DEFAULT;
114} 113}
115 114
116extern void __sanitize_i387_state(struct task_struct *); 115extern void __sanitize_i387_state(struct task_struct *);