[lkml]   [2002]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: FPU precision & signal handlers (bug?)

On 4 Mar 2002, Alan Cox wrote:

> > handlers. We use signals extensively in our program, and were quite
> > surprised to find kernel FINIT traps being generated from them. After
> > reading through the 2.4.2 source, I now believe that all signal
> > handlers run with the default FPU control word in effect. Here's
> > why...
> Think about MMX and hopefully it makes sense then.

AFAIR MMX only mucks with tag and status words (and the exponent fields of
the stack elements), but never depends on or modifies the control word.

> > strikes me as kind of a hack. Why should the signal handler, alone
> > among all my functions (excepting main) be responsible for blowing
> > away the control word?
> Right - I would expect it to be restored at the end of the signal handler
> for you - is that occuring or not ? I just want to make sure I understand
> the precise details of the problem here.

State is restored properly at end of signal handler, it always worked
fine, no problem there...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.071 / U:0.364 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site