Tweak the version string output for ioapic devices.

This commit is contained in:
John Baldwin 2003-11-04 19:22:20 +00:00
parent 3de744b5d8
commit 7542a92afa
2 changed files with 6 additions and 4 deletions

View File

@ -572,8 +572,9 @@ ioapic_register(void *cookie)
flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION; flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION;
STAILQ_INSERT_TAIL(&ioapic_list, io, io_next); STAILQ_INSERT_TAIL(&ioapic_list, io, io_next);
mtx_unlock_spin(&icu_lock); mtx_unlock_spin(&icu_lock);
printf("ioapic%u <Version %u> irqs %u-%u on motherboard\n", io->io_id, printf("ioapic%u <Version %u.%u> irqs %u-%u on motherboard\n",
flags, io->io_intbase, io->io_intbase + io->io_numintr - 1); io->io_id, flags >> 4, flags & 0xf, io->io_intbase,
io->io_intbase + io->io_numintr - 1);
for (i = 0, pin = io->io_pins; i < io->io_numintr; i++, pin++) { for (i = 0, pin = io->io_pins; i < io->io_numintr; i++, pin++) {
/* /*
* Finish initializing the pins by programming the vectors * Finish initializing the pins by programming the vectors

View File

@ -572,8 +572,9 @@ ioapic_register(void *cookie)
flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION; flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION;
STAILQ_INSERT_TAIL(&ioapic_list, io, io_next); STAILQ_INSERT_TAIL(&ioapic_list, io, io_next);
mtx_unlock_spin(&icu_lock); mtx_unlock_spin(&icu_lock);
printf("ioapic%u <Version %u> irqs %u-%u on motherboard\n", io->io_id, printf("ioapic%u <Version %u.%u> irqs %u-%u on motherboard\n",
flags, io->io_intbase, io->io_intbase + io->io_numintr - 1); io->io_id, flags >> 4, flags & 0xf, io->io_intbase,
io->io_intbase + io->io_numintr - 1);
for (i = 0, pin = io->io_pins; i < io->io_numintr; i++, pin++) { for (i = 0, pin = io->io_pins; i < io->io_numintr; i++, pin++) {
/* /*
* Finish initializing the pins by programming the vectors * Finish initializing the pins by programming the vectors