diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-09-29 12:48:11 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-30 12:37:40 +0200 |
commit | 192d1dccbfc5b901b66527df9df80304693cf06e (patch) | |
tree | 8ee15ef8ca5f7bc9887dbd61f66c171013c4aae5 /tools | |
parent | e1bfc11c5a6f40222a698a818dc269113245820e (diff) |
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: 18bc7bd523e0 ("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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions