Re: Need help with FPU/MMX/SSE state save/restore

Andi Kleen (ak@suse.de)
Fri, 1 Nov 2002 16:22:22 +0100


> Does it have anything to do with the fact I'm
> using this code from csum_partial[_copy_generic] ?

You cannot use kernel_fpu_begin in interrupt context,
and the csum copy functions can be called from that in some
cases (e.g. TCP retransmit timer). You need to check for
in_interrupt() too.

I think the problem in your case is that you don't save/restore
your registers properly around the function call. C calling
conventions allow to clobber some of them and you don't seem
to handle that.

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