Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ioapic/abi: Log interrupt trigger mode changes

It is mainly used to locate missing bus_config_intr call
  • Loading branch information...
commit a49b03f066ae6fd2360bcc77a7aa2a3674b0574f 1 parent 08c0516
Sepherosa Ziehau authored
7 sys/platform/pc32/apic/ioapic_abi.c
View
@@ -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);
7 sys/platform/pc64/apic/ioapic_abi.c
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.