Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci comment
details: https://anonhg.NetBSD.org/src/rev/8771528a7544
branches: trunk
changeset: 779745:8771528a7544
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Jun 15 14:07:44 2012 +0000
description:
comment
diffstat:
sys/arch/x86/pci/pci_intr_machdep.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r cd35a5021341 -r 8771528a7544 sys/arch/x86/pci/pci_intr_machdep.c
--- a/sys/arch/x86/pci/pci_intr_machdep.c Fri Jun 15 14:02:41 2012 +0000
+++ b/sys/arch/x86/pci/pci_intr_machdep.c Fri Jun 15 14:07:44 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_intr_machdep.c,v 1.24 2012/06/15 14:02:41 yamt Exp $ */
+/* $NetBSD: pci_intr_machdep.c,v 1.25 2012/06/15 14:07:44 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998, 2009 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_intr_machdep.c,v 1.24 2012/06/15 14:02:41 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_intr_machdep.c,v 1.25 2012/06/15 14:07:44 yamt Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -144,6 +144,10 @@
KASSERT(rawpin <= PCI_INTERRUPT_PIN_D);
pci_decompose_tag(pc, pa->pa_tag, &bus, &dev, &func);
if (mp_busses != NULL) {
+ /*
+ * Note: PCI_INTERRUPT_PIN_A == 1 where intr_find_mpmapping
+ * wants pci bus_pin encoding which uses INT_A == 0.
+ */
if (intr_find_mpmapping(bus,
(dev << 2) | (rawpin - PCI_INTERRUPT_PIN_A), ihp) == 0) {
if (APIC_IRQ_LEGACY_IRQ(*ihp) == 0)
Home |
Main Index |
Thread Index |
Old Index