Re: FPU precision & signal handlers (bug?)

Alan Cox
2002-03-04T22:23:04Z

> 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.

> 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.