Jump to content

AnVMSR V1.0 - Tool and driver to read from or write to CPU MSR registers

AnVMSR MSR

  • Please log in to reply
7 replies to this topic

#1
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,642 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

This tool is made by me for reading and writing to CPU MSR registers.

It works in kernel mode by a driver which is linked to the tool in user land with a user client.

Source is included ;)

WARNING: Don't randomly read or write to MSR registers... If you read or write invalid MSR registers, or invalid data written, your system will crash...

 

Usage:

anvmsr read E2

= read MSR register E2 and show value.

anvmsr write E2 0BAD

= write 0BAD to MSR register E2

 

Enjoy... :D

Attached Files



#2
CodeRush

CodeRush

    InsanelyMac Sage

  • Developers
  • 412 posts
  • Gender:Male
  • Location:Deggendorf, Germany

Haven't tested yet, but thanks anyway. :)

Is there some software to read and interpret values of common PCI registers, such as LPC (D31:F0) or ME interface? Will be very useful too. ;)



#3
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,074 posts
  • Gender:Male
  • Location:Moscow

Haven't tested yet, but thanks anyway. :)

Is there some software to read and interpret values of common PCI registers, such as LPC (D31:F0) or ME interface? Will be very useful too. ;)

lspci? It included into DarwinDumper, see inside.


Andy,

See to compare msr_tools



#4
Andy Vandijck

Andy Vandijck

    InsanelyMac Deity

  • Coders
  • 1,642 posts
  • Gender:Male
  • Location:Tienen
  • Interests:Programming stuff for Mac OS X...
    Hacking...
    Hard rock (also really big Metallica...

lspci? It included into DarwinDumper, see inside.


Andy,

See to compare msr_tools

Ok, just checked out the source...

I'll build and test that tool too ;)



#5
Alex Auditore

Alex Auditore

    InsanelyMac Legend

  • Donators
  • 700 posts
  • Gender:Male
What is a benefit for usual users? Can it help to find registers, voltage for example, for ACPIsensors who use laptops.

#6
Dr. Hurt

Dr. Hurt

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,496 posts
  • Gender:Male
  • Location:Cairo, Egypt and NYC, USA
  • Interests:Wandering around on the internet!! Politics, Sci/Tech, Medicine.

Forgive my ignorance but could this eventually develop into something that can allow us to bypass BIOS/AICPUPM patching for native power management? 



#7
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,074 posts
  • Gender:Male
  • Location:Moscow

Forgive my ignorance but could this eventually develop into something that can allow us to bypass BIOS/AICPUPM patching for native power management? 

Sorry, no.

MSR register 0xE2 has a property WriteOnce.

It means that if BIOS write something in it then further writing is impossible. This is the reason why you need to patch ASUS BIOS no matter what you do later.

Another method is to patch AICPUPM so that it will not use the register at all.



#8
Dr. Hurt

Dr. Hurt

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,496 posts
  • Gender:Male
  • Location:Cairo, Egypt and NYC, USA
  • Interests:Wandering around on the internet!! Politics, Sci/Tech, Medicine.

Sorry, no.

MSR register 0xE2 has a property WriteOnce.

It means that if BIOS write something in it then further writing is impossible. This is the reason why you need to patch ASUS BIOS no matter what you do later.

Another method is to patch AICPUPM so that it will not use the register at all.

 

Thanks for the explanation :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy