lkml.org 
[lkml]   [2011]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[080/165] x86, cpufeature: Update CPU feature RDRND to RDRAND
    2.6.39-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    Content-Length: 1484
    Lines: 34

    From: Kees Cook <kees.cook@canonical.com>

    commit 7ccafc5f75c87853f3c49845d5a884f2376e03ce upstream.

    The Intel manual changed the name of the CPUID bit to match the
    instruction name. We should follow suit for sanity's sake. (See Intel SDM
    Volume 2, Table 3-20 "Feature Information Returned in the ECX Register".)

    [ hpa: we can only do this at this time because there are currently no CPUs
    with this feature on the market, hence this is pre-hardware enabling.
    However, Cc:'ing stable so that stable can present a consistent ABI. ]

    Signed-off-by: Kees Cook <kees.cook@canonical.com>
    Link: http://lkml.kernel.org/r/20110524232926.GA27728@outflux.net
    Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    arch/x86/include/asm/cpufeature.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/x86/include/asm/cpufeature.h
    +++ b/arch/x86/include/asm/cpufeature.h
    @@ -125,7 +125,7 @@
    #define X86_FEATURE_OSXSAVE (4*32+27) /* "" XSAVE enabled in the OS */
    #define X86_FEATURE_AVX (4*32+28) /* Advanced Vector Extensions */
    #define X86_FEATURE_F16C (4*32+29) /* 16-bit fp conversions */
    -#define X86_FEATURE_RDRND (4*32+30) /* The RDRAND instruction */
    +#define X86_FEATURE_RDRAND (4*32+30) /* The RDRAND instruction */
    #define X86_FEATURE_HYPERVISOR (4*32+31) /* Running on a hypervisor */

    /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */



    \
     
     \ /
      Last update: 2011-06-01 10:49    [W:0.020 / U:31.800 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site