Permalink
Browse files

ioapic/abi: Log interrupt trigger mode changes

It is mainly used to locate missing bus_config_intr call
  • Loading branch information...
1 parent 08c0516 commit a49b03f066ae6fd2360bcc77a7aa2a3674b0574f Sepherosa Ziehau committed Mar 18, 2011
Showing with 12 additions and 2 deletions.
  1. +6 −1 sys/platform/pc32/apic/ioapic_abi.c
  2. +6 −1 sys/platform/pc64/apic/ioapic_abi.c
View
7 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);
View
7 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);

0 comments on commit a49b03f

Please sign in to comment.