ioapic/abi: Log interrupt trigger mode changes
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 18 Mar 2011 14:23:48 +0000 (22:23 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 18 Mar 2011 14:23:48 +0000 (22:23 +0800)
It is mainly used to locate missing bus_config_intr call

sys/platform/pc32/apic/ioapic_abi.c
sys/platform/pc64/apic/ioapic_abi.c

index a1ac440..f1a33b7 100644 (file)
@@ -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);
index cdd6946..e9c33d9 100644 (file)
@@ -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);