From 695a257f5f74dccff3ecc82a0974fcc1b06442d4 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Thu, 13 Jun 2019 07:42:45 +0000 Subject: [PATCH] lapic_dump(): Print CMCI and thermal local vector table, too. --- sys/arch/x86/x86/lapic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/x86/x86/lapic.c b/sys/arch/x86/x86/lapic.c index 085928a9f510..8cb1d57f4434 100644 --- a/sys/arch/x86/x86/lapic.c +++ b/sys/arch/x86/x86/lapic.c @@ -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 -__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 @@ lapic_dump(void) 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));