]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: Fix another __read_cr4() case on 486
authorAndy Lutomirski <luto@kernel.org>
Thu, 29 Sep 2016 19:48:11 +0000 (12:48 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 30 Sep 2016 10:37:40 +0000 (12:37 +0200)
commit69b660812ae9584fb1cfd241ac4fc0201b3ede59
tree8ee15ef8ca5f7bc9887dbd61f66c171013c4aae5
parent639f609987b379409248dd23ae9084b7c92e6f7f
x86/boot: Fix another __read_cr4() case on 486

The condition for reading CR4 was wrong: there are some CPUs with
CPUID but not CR4.  Rather than trying to make the condition exact,
use __read_cr4_safe().

Fixes: 328c8704ed9b ("x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly")
Reported-by: david@saggiorato.net
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Link: http://lkml.kernel.org/r/8c453a61c4f44ab6ff43c29780ba04835234d2e5.1475178369.git.luto@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/setup.c