Re: How to use __readmsr(int address) to get MSR of CPU
- From: "Ben Voigt" <rbv@xxxxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 10:54:05 -0600
"Pavel A." <pavel_a@xxxxxxxxxxxxxxx> wrote in message
news:%23YR06KGIHHA.924@xxxxxxxxxxxxxxxxxxxxxxx
Correct. You can't do privileged instructions from user mode (even with
MFC :)
--PA
The usual solution is to find a driver that already exposes what you're
looking for. A common driver providing user-mode access to protected I/O
resources is giveio, there is probably something similar for MSRs. But
isn't all that information exposed via API calls already?
"BonBon" <BonBon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C88EB1E2-A79A-47C1-80EA-024C61052C50@xxxxxxxxxxxxxxxx
Hello~
I used MFC to get some MSR of CPU, I included "intrin.h" and used
"__readmsr()",
but it had error messages that "Privileged instrction".
I think OS maybe has protected it.
So, how to do that I can access MSR of CPU?
or where has some relative information of this? such as DDK, WDK or
others.
Please someone can kindly tell me!
Thank you!
Best regards.
.
- References:
- Re: How to use __readmsr(int address) to get MSR of CPU
- From: Pavel A.
- Re: How to use __readmsr(int address) to get MSR of CPU
- Prev by Date: Re: how to write array of char in the shared memory
- Next by Date: Re: How to handle 32 GB+ drives on a Win98 system
- Previous by thread: Re: How to use __readmsr(int address) to get MSR of CPU
- Next by thread: Re: Differences between eprocess kprocess; ethread and kthread
- Index(es):