From: Kees Cook Date: Fri, 11 Oct 2013 00:18:13 +0000 (-0700) Subject: x86, boot: Move CPU flags out of cpucheck X-Git-Tag: v3.14-rc1~156^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd78b97367bd575918204cc89107c1479d3fc1a7;p=pandora-kernel.git x86, boot: Move CPU flags out of cpucheck Refactor the CPU flags handling out of the cpucheck routines so that they can be reused by the future ASLR routines (in order to detect CPU features like RDRAND and RDTSC). This reworks has_eflag() and has_fpu() to be used on both 32-bit and 64-bit, and refactors the calls to cpuid to make them PIC-safe on 32-bit. Signed-off-by: Kees Cook Link: http://lkml.kernel.org/r/1381450698-28710-2-git-send-email-keescook@chromium.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed