Re: Test whether rdmsr instruction is supported.
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Fri, 31 Jul 2009 08:09:27 -0700
All modern processors (at least those you can run XP on) support cpuid.
"RossettoeCioccolato" <rossetoecioccolato@xxxxxxxxxxxxxxxx> wrote in message
news:%23r%23r5AeEKHA.1336@xxxxxxxxxxxxxxxxxxxxxxx
Thanks to all who responded. I see that the MSR feature information
returned by __cpuid and __cpuidex is documented:
http://msdn.microsoft.com/en-us/library/hskdteyh.aspx.
I don't think so. Microsoft is using CPUID to check if RDMSR is supported
in HAL without any speacial tricks like affinity or raising irql.
Volodymyr, could you provide a symbol which contains this code. I would
like to document that MS relies on this algorithm for my records.
Testing bit 5 in edx after cpuid instruction.<
Not to be anal, but should I also test whether the processor supports the
cpuid instruction? See for example:
"...if you want to use the CPUID instruction to check processor
properties, you should first ensure that the processor supports the CPUID
instruction."
http://books.google.com/books?id=ZFDqpSUPwAgC&pg=PA232&lpg=PA232&dq=test+cpuid+instruction+supported&source=bl&ots=X4QbQJs9dj&sig=PXrAZbyD_Dbdkx8O8_1mZC-HGBY&hl=en&ei=kelySrafDYu6Nd7I6LAM&sa=X&oi=book_result&ct=result&resnum=5#v=onepage&q=test%20cpuid%20instruction%20supported&f=false.
Or can I just assume that it is because I am running under Windows? If
the HAL makes this assumption then presumably it also is safe for ISV's.
Correct?
Regards,
Rossetoecioccolato.
.
- References:
- Test whether rdmsr instruction is supported.
- From: RossettoeCioccolato
- Re: Test whether rdmsr instruction is supported.
- From: Burkhardt Braun
- Re: Test whether rdmsr instruction is supported.
- From: Kalle Olavi Niemitalo
- Re: Test whether rdmsr instruction is supported.
- From: Volodymyr Shcherbyna
- Re: Test whether rdmsr instruction is supported.
- From: RossettoeCioccolato
- Test whether rdmsr instruction is supported.
- Prev by Date: Re: Test whether rdmsr instruction is supported.
- Next by Date: Re: possible linker issue -- overlapping symbols
- Previous by thread: Re: Test whether rdmsr instruction is supported.
- Next by thread: Re: Test whether rdmsr instruction is supported.
- Index(es):
Relevant Pages
|