On Sun, Oct 13, 2013 at 03:20:19PM +0100, Jiang Liu wrote: > +void fpsimd_prepare_sigctx(struct fpsimd_state *state) > +{ > + /* dump the hardware registers to the fpsimd_state structure */ > + fpsimd_save_state(state); > + fpsimd_clear_fpsr(); > +}
What don't particularly like is that you save the FP context and then corrupt it. Can we get preempted after this function and before we save it on the signal stack? -- Catalin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/