Re: [PATCH] x86: Reset FPU on exec

From: Andi Kleen
Date: Tue Apr 21 2015 - 09:51:32 EST


On Tue, Apr 21, 2015 at 11:35:58AM +0200, Thomas Gleixner wrote:
> On Fri, 17 Apr 2015, Andi Kleen wrote:
>
> > +void reset_fpu(void)
> > +{
> > + drop_init_fpu(current);
> > +}
>
> So we have a new function which is merily a wrapper around a non
> existent function.

I originally tried to use the inline function directly, but
it's defined in "fpu-internal.h" and including it in asm/elf.h
causing all kinds of issues.

>
> What's the exact purpose of this patch aside of breaking the build?

Try reading the description?

Also it builds fine here.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/