From 7542a92afa12360ec98c780d158eb4f93a7a789a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 4 Nov 2003 19:22:20 +0000 Subject: [PATCH] Tweak the version string output for ioapic devices. --- sys/amd64/amd64/io_apic.c | 5 +++-- sys/i386/i386/io_apic.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/io_apic.c b/sys/amd64/amd64/io_apic.c index 00a3e5cd2c71..81e5fb3dc3a1 100644 --- a/sys/amd64/amd64/io_apic.c +++ b/sys/amd64/amd64/io_apic.c @@ -572,8 +572,9 @@ ioapic_register(void *cookie) flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION; STAILQ_INSERT_TAIL(&ioapic_list, io, io_next); mtx_unlock_spin(&icu_lock); - printf("ioapic%u irqs %u-%u on motherboard\n", io->io_id, - flags, io->io_intbase, io->io_intbase + io->io_numintr - 1); + printf("ioapic%u irqs %u-%u on motherboard\n", + 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++) { /* * Finish initializing the pins by programming the vectors diff --git a/sys/i386/i386/io_apic.c b/sys/i386/i386/io_apic.c index 00a3e5cd2c71..81e5fb3dc3a1 100644 --- a/sys/i386/i386/io_apic.c +++ b/sys/i386/i386/io_apic.c @@ -572,8 +572,9 @@ ioapic_register(void *cookie) flags = ioapic_read(apic, IOAPIC_VER) & IOART_VER_VERSION; STAILQ_INSERT_TAIL(&ioapic_list, io, io_next); mtx_unlock_spin(&icu_lock); - printf("ioapic%u irqs %u-%u on motherboard\n", io->io_id, - flags, io->io_intbase, io->io_intbase + io->io_numintr - 1); + printf("ioapic%u irqs %u-%u on motherboard\n", + 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++) { /* * Finish initializing the pins by programming the vectors