[PATCH] kdb: add rdmsr and wrmsr commands for i386

Bernardo Innocenti bernie at codewiz.org
Tue May 15 12:44:05 PDT 2007


Mitch Bradley wrote:
> Bernardo Innocenti wrote:
>> The syntax is:
>>    rdmsr <addr>
>>    wrmsr <addr> <l> <h>
> 
> In the hardware documentation that I have seen, MSR values are 
> conventionally shown as 64-bit numbers.  The <l> <h> ordering will make 
> it necessary to do a mental flip.  The 32-bit pieces of MSR do not have 
> individual addresses, so considerations of endianness are not directly 
> relevant.

I reveresed the order as you asked, but, honestly, I don't like it
very much either way :-)

Here's the patch again:



More information about the kdb mailing list