svn commit: r204518 - in head/sys: amd64/amd64 i386/i386
John Baldwin
jhb at FreeBSD.org
Mon Mar 1 13:56:15 UTC 2010
Author: jhb
Date: Mon Mar 1 13:56:15 2010
New Revision: 204518
URL: http://svn.freebsd.org/changeset/base/204518
Log:
Print the contents of the miscellaneous (MISC) register to the console if
it is valid along with the other register values when a machine check is
encountered.
MFC after: 1 week
Modified:
head/sys/amd64/amd64/mca.c
head/sys/i386/i386/mca.c
Modified: head/sys/amd64/amd64/mca.c
==============================================================================
--- head/sys/amd64/amd64/mca.c Mon Mar 1 13:55:28 2010 (r204517)
+++ head/sys/amd64/amd64/mca.c Mon Mar 1 13:56:15 2010 (r204518)
@@ -288,6 +288,8 @@ mca_log(const struct mca_record *rec)
printf("\n");
if (rec->mr_status & MC_STATUS_ADDRV)
printf("MCA: Address 0x%llx\n", (long long)rec->mr_addr);
+ if (rec->mr_status & MC_STATUS_MISCV)
+ printf("MCA: Misc 0x%llx\n", (long long)rec->mr_misc);
}
static int __nonnull(2)
Modified: head/sys/i386/i386/mca.c
==============================================================================
--- head/sys/i386/i386/mca.c Mon Mar 1 13:55:28 2010 (r204517)
+++ head/sys/i386/i386/mca.c Mon Mar 1 13:56:15 2010 (r204518)
@@ -288,6 +288,8 @@ mca_log(const struct mca_record *rec)
printf("\n");
if (rec->mr_status & MC_STATUS_ADDRV)
printf("MCA: Address 0x%llx\n", (long long)rec->mr_addr);
+ if (rec->mr_status & MC_STATUS_MISCV)
+ printf("MCA: Misc 0x%llx\n", (long long)rec->mr_misc);
}
static int __nonnull(2)
More information about the svn-src-all
mailing list