summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-02-22 03:47:16 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-02-22 03:47:16 +0000
commitf15375f5fbd4e0a843b21d3ec1957fcb3cd9c318 (patch)
treee2241c4ca71821e2f0e79c1e450cf221e25bed50 /sys/arch
parentb8b5308cae709adc7b92263ac61594c76949364e (diff)
Print base so that we can make a correct mapping between apic and irq.
ok jordan
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/ioapic.c5
-rw-r--r--sys/arch/i386/i386/ioapic.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/ioapic.c b/sys/arch/amd64/amd64/ioapic.c
index 23cfe610c20..a03d2e8c7cf 100644
--- a/sys/arch/amd64/amd64/ioapic.c
+++ b/sys/arch/amd64/amd64/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.10 2007/01/24 20:47:45 kettenis Exp $ */
+/* $OpenBSD: ioapic.c,v 1.11 2007/02/22 03:47:15 marco Exp $ */
/* $NetBSD: ioapic.c,v 1.6 2003/05/15 13:30:31 fvdl Exp $ */
/*-
@@ -343,7 +343,8 @@ ioapic_attach(struct device *parent, struct device *self, void *aux)
aaa->flags & IOAPIC_PICMODE ? "PIC" : "virtual wire");
}
- printf(", version %x, %d pins\n", sc->sc_apic_vers, sc->sc_apic_sz);
+ printf(", version %x, pins %d, base %d\n", sc->sc_apic_vers,
+ sc->sc_apic_sz, sc->sc_apic_vecbase);
apic_id = (ioapic_read(sc, IOAPIC_ID) & IOAPIC_ID_MASK) >>
IOAPIC_ID_SHIFT;
diff --git a/sys/arch/i386/i386/ioapic.c b/sys/arch/i386/i386/ioapic.c
index 2402764105d..9c329f90eec 100644
--- a/sys/arch/i386/i386/ioapic.c
+++ b/sys/arch/i386/i386/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.12 2007/02/19 20:44:24 kettenis Exp $ */
+/* $OpenBSD: ioapic.c,v 1.13 2007/02/22 03:47:14 marco Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
@@ -303,7 +303,8 @@ ioapic_attach(struct device *parent, struct device *self, void *aux)
aaa->flags & IOAPIC_PICMODE ? "PIC" : "virtual wire");
}
- printf(", version %x, %d pins\n", sc->sc_apic_vers, sc->sc_apic_sz);
+ printf(", version %x, pins %d, base %d\n", sc->sc_apic_vers,
+ sc->sc_apic_sz, sc->sc_apic_vecbase);
/*
* If either a LAPIC or an I/O APIC is already at the ID the BIOS