# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 43c21adcfc79417c8dd7e7e3092679d4f2372681
# Parent 1fb47826d767ef98e36ba646199310846ad930cf
Add debug-key for printing IRQ/IOAPIC info.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 1fb47826d767 -r 43c21adcfc79 xen/arch/x86/io_apic.c
--- a/xen/arch/x86/io_apic.c Thu Jul 14 10:12:51 2005
+++ b/xen/arch/x86/io_apic.c Thu Jul 14 10:16:45 2005
@@ -27,6 +27,7 @@
#include <xen/delay.h>
#include <xen/sched.h>
#include <xen/acpi.h>
+#include <xen/keyhandler.h>
#include <asm/io.h>
#include <asm/mc146818rtc.h>
#include <asm/smp.h>
@@ -744,7 +745,7 @@
{
}
-void __init print_IO_APIC(void)
+void __init __print_IO_APIC(void)
{
int apic, i;
union IO_APIC_reg_00 reg_00;
@@ -752,9 +753,6 @@
union IO_APIC_reg_02 reg_02;
union IO_APIC_reg_03 reg_03;
unsigned long flags;
-
- if (apic_verbosity == APIC_QUIET)
- return;
printk(KERN_DEBUG "number of MP IRQ sources: %d.\n", mp_irq_entries);
for (i = 0; i < nr_ioapics; i++)
@@ -887,6 +885,17 @@
printk(KERN_INFO ".................................... done.\n");
return;
+}
+
+void print_IO_APIC(void)
+{
+ if (apic_verbosity != APIC_QUIET)
+ __print_IO_APIC();
+}
+
+void print_IO_APIC_keyhandler(unsigned char key)
+{
+ __print_IO_APIC();
}
static void __init enable_IO_APIC(void)
@@ -1531,6 +1540,8 @@
init_IO_APIC_traps();
check_timer();
print_IO_APIC();
+
+ register_keyhandler('z', print_IO_APIC_keyhandler, "print ioapic info");
}
/* --------------------------------------------------------------------------
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|