Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: panic! panic! panic! sigh.. panic!



On Mon, Sep 22, 2008 at 07:27:45AM -0400, Greg Troxel wrote:
> 
>   The kernel doesn't save any of these registers on entry into the kernel
>   (via an interrupt or system call) and doesn't restore them on exit. It
>   also doesn't save and restore them on internal scheduling. If you
>   compile the kernel with MMX or SSE<n> enabled the kernel will sooner
>   or later globber some state and you get a panic.
> 
> It would be nice if the kernel had some gcc flags or similar would
> actually prevent compilation if any unsafe operations would be emitted.

Is is possible to enable the FP absent (or similar) trap?
Like the one I hit of solaris where sun's C compiler failed to
evaluate a constant FP expression at compile time :-(

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index