From: Jan Beulich Date: Sat, 25 Mar 2006 15:29:25 +0000 (+0100) Subject: [PATCH] x86_64: save FPU context slightly later X-Git-Tag: v2.6.17-rc1~720 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45948d7720e8bd0104696087c6305fdd90e3b298;p=pandora-kernel.git [PATCH] x86_64: save FPU context slightly later Touching of the floating point state in a kernel debugger must be NMI-safe, specifically math_state_restore() must be able to deal with being called out of an NMI context. In order to do that reliably, the context switch code must take care to not leave a window open where the current task's TS_USEDFPU flag and CR0.TS could get out of sync. Signed-off-by: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed