Author: uwe
Date: 2009-04-10 23:05:56 +0200 (Fri, 10 Apr 2009)
New Revision: 4090
Modified:
trunk/util/msrtool/k8.c
trunk/util/msrtool/msrtool.c
trunk/util/msrtool/msrutils.c
Log:
Add a note that 'modprobe msr' might be required.
Remove trailing whitespace. Fix typos.
Signed-off-by: Uwe Hermann <uwe(a)hermann-uwe.de>
Acked-by: Uwe Hermann <uwe(a)hermann-uwe.de>
Modified: trunk/util/msrtool/k8.c
===================================================================
--- trunk/util/msrtool/k8.c 2009-04-10 14:49:14 UTC (rev 4089)
+++ trunk/util/msrtool/k8.c 2009-04-10 21:05:56 UTC (rev 4090)
@@ -38,7 +38,7 @@
}},
{ 13, 1, "LMSLE:", "Long Mode Segment Limit Enable", PRESENT_DEC, {
{ MSR1(0), "Long mode segment limit check disabled" },
- { MSR1(1), "Long mode segment limit check enalbed" },
+ { MSR1(1), "Long mode segment limit check enabled" },
{ BITVAL_EOT }
}},
{ 12, 1, "SVME:", "SVM Enable", PRESENT_DEC, {
@@ -134,7 +134,7 @@
{ BITS_EOT }
}},
- { 0xC0010015, MSRTYPE_RDWR, MSR2(0, 0), "HWCR Register", "This register controls the harware configuration", {
+ { 0xC0010015, MSRTYPE_RDWR, MSR2(0, 0), "HWCR Register", "This register controls the hardware configuration", {
{ 63, 32, RESERVED },
{ 31, 2, RESERVED },
{ 29, 6, "START_FID:", "Status of the startup FID", PRESENT_HEX, {
Modified: trunk/util/msrtool/msrtool.c
===================================================================
--- trunk/util/msrtool/msrtool.c 2009-04-10 14:49:14 UTC (rev 4089)
+++ trunk/util/msrtool/msrtool.c 2009-04-10 21:05:56 UTC (rev 4090)
@@ -350,6 +350,7 @@
if (sys && !sys->name) {
fprintf(stderr, "Unable to detect the current operating system!\n");
+ fprintf(stderr, "On Linux, please do 'modprobe msr' and retry.\n");
fprintf(stderr, "Please send a report or patch to coreboot(a)coreboot.org. Thanks for your help!\n");
fprintf(stderr, "\n");
}
Modified: trunk/util/msrtool/msrutils.c
===================================================================
--- trunk/util/msrtool/msrutils.c 2009-04-10 14:49:14 UTC (rev 4089)
+++ trunk/util/msrtool/msrutils.c 2009-04-10 21:05:56 UTC (rev 4090)
@@ -191,7 +191,7 @@
/**
* Parse a hexadecimal string into an MSR value.
- *
+ *
* Leading 0x or 0X is optional, the string is always parsed as hexadecimal.
* Any non-hexadecimal character can be used to separate the high 32 bits and
* the low 32 bits. If there is such a separator, high and low values do not