From a49b03f066ae6fd2360bcc77a7aa2a3674b0574f Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 18 Mar 2011 22:23:48 +0800 Subject: [PATCH] ioapic/abi: Log interrupt trigger mode changes It is mainly used to locate missing bus_config_intr call --- sys/platform/pc32/apic/ioapic_abi.c | 7 ++++++- sys/platform/pc64/apic/ioapic_abi.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sys/platform/pc32/apic/ioapic_abi.c b/sys/platform/pc32/apic/ioapic_abi.c index a1ac440fb5..f1a33b7640 100644 --- a/sys/platform/pc32/apic/ioapic_abi.c +++ b/sys/platform/pc32/apic/ioapic_abi.c @@ -788,8 +788,13 @@ ioapic_intr_config(int irq, enum intr_trigger trig, enum intr_polarity pola) void *ioaddr; int pin; - if (ioapic_use_old) + if (ioapic_use_old) { + if (bootverbose) { + kprintf("irq %d, trig %c\n", irq, + trig == INTR_TRIGGER_EDGE ? 'E' : 'L'); + } return; + } KKASSERT(trig == INTR_TRIGGER_EDGE || trig == INTR_TRIGGER_LEVEL); KKASSERT(pola == INTR_POLARITY_HIGH || pola == INTR_POLARITY_LOW); diff --git a/sys/platform/pc64/apic/ioapic_abi.c b/sys/platform/pc64/apic/ioapic_abi.c index cdd69465b3..e9c33d99e1 100644 --- a/sys/platform/pc64/apic/ioapic_abi.c +++ b/sys/platform/pc64/apic/ioapic_abi.c @@ -781,8 +781,13 @@ ioapic_intr_config(int irq, enum intr_trigger trig, enum intr_polarity pola) void *ioaddr; int pin; - if (ioapic_use_old) + if (ioapic_use_old) { + if (bootverbose) { + kprintf("irq %d, trig %c\n", irq, + trig == INTR_TRIGGER_EDGE ? 'E' : 'L'); + } return; + } KKASSERT(trig == INTR_TRIGGER_EDGE || trig == INTR_TRIGGER_LEVEL); KKASSERT(pola == INTR_POLARITY_HIGH || pola == INTR_POLARITY_LOW); -- 2.41.0