#define rdmsr(msr,val1,val2) \
__asm__ __volatile__("rdmsr" \
: "=a" (val1), "=d" (val2) \
: "c" (msr))
unsigned long val1, val2;
rdmsr (0x11, val1, val2);
printk ("vals: %lx %lx\n", val1, val2);
Running the same code on a Pentium seems to work fine. Since the
manual does say that the MSRs can change from model to model, I guess
I shouldn't be too surprised.
So it looks like I need a list of MSRs specifically for the Pentium
Pro. Does anybody have such a list, or a URL I can use?
Aside: reading the Pentium event counters for data TLB miss and data
read miss give odd-looking numbers. The counters seem to switch
between pairs of slowly increasing numbers.
Regards,
Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/