]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix fpu restore from sig return
authorSuresh Siddha <suresh.b.siddha@intel.com>
Wed, 7 May 2008 19:09:52 +0000 (12:09 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 10 May 2008 17:31:45 +0000 (19:31 +0200)
commit23177e6c77b66ee4034234a95cdcf07295cbe732
tree67cc2a950e670e5362173efd88ea6ded708b7e6c
parentfdabe8b397a36c72b2e438db343663ecda5a1ece
x86: fix fpu restore from sig return

If the task never used fpu, initialize the fpu before restoring the FP
state from the signal handler context. This will allocate the fpu
state, if the task never needed it before.

Reported-and-bisected-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Tested-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Frederik Deweerdt <deweerdt@free.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/i387.c
include/asm-x86/i387.h