From: H. Peter Anvin Date: Tue, 23 Dec 2008 01:56:05 +0000 (-0800) Subject: x86: prioritize the FPU traps for the error code X-Git-Tag: v2.6.29-rc1~587^2~4^12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adf77bac052bb5bf0722b2ce2af9fefc5b2d2a71;p=pandora-kernel.git x86: prioritize the FPU traps for the error code In the case of multiple FPU errors, prioritize the error codes, instead of returning __SI_FAULT, which ends up pushing a 0 as the error code to userspace, a POSIX violation. For i386, we will simply return if there are no errors at all; for x86-64 this is probably a "can't happen" (and the code should be unified), but for this patch, return __SI_FAULT|SI_KERNEL if this ever happens. Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed