]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fdiv bug detection fix
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Thu, 31 Jul 2008 21:43:44 +0000 (23:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Jul 2008 21:56:27 +0000 (23:56 +0200)
commit1c4018cd11d639e20e91b06a4e02f9657a6da44d
tree414e81fefd2c44dfbee7509d54aa372845949013
parent11446a41ab58835d53cea68997fbb813fd809566
x86: fdiv bug detection fix

The fdiv detection code writes s32 integer into
the boot_cpu_data.fdiv_bug.
However, the boot_cpu_data.fdiv_bug is only char (s8)
field so the detection overwrites already set fields for
other bugs, e.g. the f00f bug field.

Use local s32 variable to receive result.

This is a partial fix to Bugzilla #9928  - fixes wrong
information about the f00f bug (tested) and probably
for coma bug (I have no cpu to test this).

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/bugs.c