lkml.org 
[lkml]   [2009]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] x86, AMD: Disable wrongly set X86_FEATURE_LAHF_LM CPUID bit
On 08/30/2009 04:50 AM, Borislav Petkov wrote:
> clear_cpu_cap(c, X86_FEATURE_LAHF_LM);
> + if (!rdmsrl_amd_safe(0xc001100d, &val)) {
> + val &= ~(1ULL << 32);
> + wrmsr_amd_safe(0xc001100d, (u32) val,
> + (u32)(val >> 32));
> + }
> + }

We presumably want/need wrmsrl_amd_safe() here!

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.



\
 
 \ /
  Last update: 2009-08-30 21:25    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site