1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Only dump the values of the PMC and CMCI local vector table entries on a

local APIC if those LVT entries are valid.  This quiets spurious illegal
register local APIC errors during boot on a CPU that doesn't support those
vectors.

MFC after:	1 week
This commit is contained in:
John Baldwin 2010-11-08 20:03:51 +00:00
parent 134a9563c7
commit 95b3d590e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215001

View File

@ -324,16 +324,21 @@ lapic_create(u_int apic_id, int boot_cpu)
void
lapic_dump(const char* str)
{
uint32_t maxlvt;
maxlvt = (lapic->version & APIC_VER_MAXLVT) >> MAXLVTSHIFT;
printf("cpu%d %s:\n", PCPU_GET(cpuid), str);
printf(" ID: 0x%08x VER: 0x%08x LDR: 0x%08x DFR: 0x%08x\n",
lapic->id, lapic->version, lapic->ldr, lapic->dfr);
printf(" lint0: 0x%08x lint1: 0x%08x TPR: 0x%08x SVR: 0x%08x\n",
lapic->lvt_lint0, lapic->lvt_lint1, lapic->tpr, lapic->svr);
printf(" timer: 0x%08x therm: 0x%08x err: 0x%08x pmc: 0x%08x\n",
lapic->lvt_timer, lapic->lvt_thermal, lapic->lvt_error,
lapic->lvt_pcint);
printf(" cmci: 0x%08x\n", lapic->lvt_cmci);
printf(" timer: 0x%08x therm: 0x%08x err: 0x%08x",
lapic->lvt_timer, lapic->lvt_thermal, lapic->lvt_error);
if (maxlvt >= LVT_PMC)
printf(" pmc: 0x%08x", lapic->lvt_pcint);
printf("\n");
if (maxlvt >= LVT_CMCI)
printf(" cmci: 0x%08x\n", lapic->lvt_cmci);
}
void