lkml.org 
[lkml]   [2006]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH/RFC] Math-emu kills the kernel on Athlon64 X2
Date

> void mxcsr_feature_mask_init(void)
> {
> unsigned long mask = 0;
> clts();
> if (cpu_has_fxsr) {
> memset(&current->thread.i387.fxsave, 0, sizeof(struct i387_fxsave_struct));
> asm volatile("fxsave %0" : : "m" (current->thread.i387.fxsave));
> mask = current->thread.i387.fxsave.mxcsr_mask;
> if (mask == 0) mask = 0x0000ffbf;
> }

This just needs an ifdef. I'll fix that thanks.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-03 12:09    [W:0.083 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site