x86: display extended apic registers with print_local_APIC and cpu_debug code
Both print_local_APIC (used when apic=debug kernel param is set) and cpu_debug code missed support for some extended APIC registers that I'd like to see. This adds support to show: - extended APIC feature register - extended APIC control register - extended LVT registers [ Impact: print more debug info ] Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com> Cc: Jaswinder Singh Rajput <jaswinder@kernel.org> Cc: Cyrill Gorcunov <gorcunov@openvz.org> LKML-Reference: <20090508162350.GO29045@alberich.amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:

committed by
Ingo Molnar

parent
4401da6111
commit
97a5271465
@@ -588,8 +588,20 @@ static void print_apic(void *arg)
|
||||
seq_printf(seq, " TMICT\t\t: %08x\n", apic_read(APIC_TMICT));
|
||||
seq_printf(seq, " TMCCT\t\t: %08x\n", apic_read(APIC_TMCCT));
|
||||
seq_printf(seq, " TDCR\t\t: %08x\n", apic_read(APIC_TDCR));
|
||||
#endif /* CONFIG_X86_LOCAL_APIC */
|
||||
if (boot_cpu_has(X86_FEATURE_EXTAPIC)) {
|
||||
unsigned int i, v, maxeilvt;
|
||||
|
||||
v = apic_read(APIC_EFEAT);
|
||||
maxeilvt = (v >> 16) & 0xff;
|
||||
seq_printf(seq, " EFEAT\t\t: %08x\n", v);
|
||||
seq_printf(seq, " ECTRL\t\t: %08x\n", apic_read(APIC_ECTRL));
|
||||
|
||||
for (i = 0; i < maxeilvt; i++) {
|
||||
v = apic_read(APIC_EILVTn(i));
|
||||
seq_printf(seq, " EILVT%d\t\t: %08x\n", i, v);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_X86_LOCAL_APIC */
|
||||
seq_printf(seq, "\n MSR\t:\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user