Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 lapic_dump(): Print CMCI and thermal local ...



details:   https://anonhg.NetBSD.org/src/rev/c4fd65ddd75a
branches:  trunk
changeset: 451971:c4fd65ddd75a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jun 13 07:42:45 2019 +0000

description:
lapic_dump(): Print CMCI and thermal local vector table, too.

diffstat:

 sys/arch/x86/x86/lapic.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 453cdae10e40 -r c4fd65ddd75a sys/arch/x86/x86/lapic.c
--- a/sys/arch/x86/x86/lapic.c  Thu Jun 13 07:28:17 2019 +0000
+++ b/sys/arch/x86/x86/lapic.c  Thu Jun 13 07:42:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lapic.c,v 1.72 2019/06/13 05:19:40 msaitoh Exp $       */
+/*     $NetBSD: lapic.c,v 1.73 2019/06/13 07:42:45 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.72 2019/06/13 05:19:40 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.73 2019/06/13 07:42:45 msaitoh Exp $");
 
 #include "acpica.h"
 #include "ioapic.h"
@@ -954,7 +954,9 @@
        struct cpu_info *ci = curcpu();
        const char *xname = device_xname(ci->ci_dev);
 
+       apic_format_redir(xname, "cmci", 0, 0, lapic_readreg(LAPIC_LVT_CMCI));
        apic_format_redir(xname, "timer", 0, 0, lapic_readreg(LAPIC_LVTT));
+       apic_format_redir(xname, "thermal", 0, 0, lapic_readreg(LAPIC_TMINT));
        apic_format_redir(xname, "pcint", 0, 0, lapic_readreg(LAPIC_PCINT));
        apic_format_redir(xname, "lint", 0, 0, lapic_readreg(LAPIC_LVINT0));
        apic_format_redir(xname, "lint", 1, 0, lapic_readreg(LAPIC_LVINT1));



Home | Main Index | Thread Index | Old Index