Dump the trigger and polarity of each intpin's default setting in the

bootverbose output.
This commit is contained in:
John Baldwin 2003-11-07 23:44:35 +00:00
parent aab621f060
commit 88861af1fb
2 changed files with 10 additions and 4 deletions

View File

@ -406,9 +406,12 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
if (bootverbose) {
printf("ioapic%u: intpin %d -> ", io->io_id, i);
if (intpin->io_vector == VECTOR_EXTINT)
printf("ExtINT\n");
printf("ExtINT");
else
printf("irq %u\n", intpin->io_vector);
printf("irq %u", intpin->io_vector);
printf(" (%s, active%s)\n", intpin->io_edgetrigger ?
"edge" : "level", intpin->io_activehi ? "hi" :
"lo");
}
value = ioapic_read(apic, IOAPIC_REDTBL_LO(i));
ioapic_write(apic, IOAPIC_REDTBL_LO(i), value | IOART_INTMSET);

View File

@ -406,9 +406,12 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase)
if (bootverbose) {
printf("ioapic%u: intpin %d -> ", io->io_id, i);
if (intpin->io_vector == VECTOR_EXTINT)
printf("ExtINT\n");
printf("ExtINT");
else
printf("irq %u\n", intpin->io_vector);
printf("irq %u", intpin->io_vector);
printf(" (%s, active%s)\n", intpin->io_edgetrigger ?
"edge" : "level", intpin->io_activehi ? "hi" :
"lo");
}
value = ioapic_read(apic, IOAPIC_REDTBL_LO(i));
ioapic_write(apic, IOAPIC_REDTBL_LO(i), value | IOART_INTMSET);