kdb
[Top] [All Lists]

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

To: Mitch Bradley <wmb@xxxxxxxxxxxxx>
Subject: Re: [PATCH] kdb: add rdmsr and wrmsr commands for i386
From: Bernardo Innocenti <bernie@xxxxxxxxxxx>
Date: Tue, 15 May 2007 15:44:05 -0400
Cc: kdb@xxxxxxxxxxx, lkml@xxxxxxxxxxxxxxx, devel@xxxxxxxxxx
In-reply-to: <46495C6F.1050207@firmworks.com>
Organization: http://www.codewiz.org/
References: <46494B99.2030502@codewiz.org> <46495C6F.1050207@firmworks.com>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (X11/20070504)
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:

<Prev in Thread] Current Thread [Next in Thread>