diff options
author | 2007-02-22 03:47:14 +0000 | |
---|---|---|
committer | 2007-02-22 03:47:14 +0000 | |
commit | 4ef54f494cb110c7b917a11f6e8f7d900cbf05af (patch) | |
tree | f9871338aa66b5a0938fd2f8bfeac75f3a04862b /sys | |
parent | Add layer 7 functionality to hoststated used for layer 7 (diff) | |
download | wireguard-openbsd-4ef54f494cb110c7b917a11f6e8f7d900cbf05af.tar.xz wireguard-openbsd-4ef54f494cb110c7b917a11f6e8f7d900cbf05af.zip |
Print base so that we can make a correct mapping between apic and irq.
ok jordan
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/ioapic.c | 5 | ||||
-rw-r--r-- | sys/arch/i386/i386/ioapic.c | 5 |
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 |