I would like to read CPU MSR in winXP to get some CPU information, but it always get blue screen , Does anyone have sample code can do that ?
I use below macro to read MSR :
_RDMSR macro
db 0fh
db 32h
ebdm


many thanks~
Posted on 2005-11-14 01:53:29 by sakhir10
Windows is a protected operating system, and will not let you directly access something as critical as the MSRs.

I wrote some cross 9x/NT code (ring0hack on 9x, driver on NT) to access MSRs though. It was written a while ago and is quick-and-dirty (ie, use at your own risk), but I've used it successfully to do things like changing CPUID string on my system.

Have a look at the attached zip.
Attachments:
Posted on 2005-11-14 03:25:44 by f0dder
Thank you sir ! I just want to write a small tool to check MSR data for testing .
By the way ,I unzip the file to get ring3msr_dist.zip.sig and ring3msr_dist.zip files . I do NOT know how to ue it .Could you help me ?
Posted on 2005-11-14 20:01:14 by sakhir10
The .sig file is a PGP (well, gnupg) file for verifying the integrity of the ring3msr_dist.zip file - you can safely ignore it, and unpack the ring3msr_dist.zip which has the actual source and example :)
Posted on 2005-11-14 21:12:37 by f0dder
I'm sorry that I still can NOT unzip the ring3msr_dist.zip file , it got the below error message :

End-of-central-directory signature not found.  Either this file is not a Zip file, or it constitutes one disk of a multi-part Zip file.

I can unzip the ring3msr_20040417.zip but can NOT unzip the ring3msr_dist.zip .
Could you kindly direct mail the sample code to me ?
Many thanks~
Posted on 2005-11-15 20:45:21 by sakhir10
Try re-downloading the file, it unpacks perfectly here - ring3msr_dist.zip should be 29.8kb (30.561 bytes) long.
Posted on 2005-11-15 21:11:50 by f0dder