From 596f1ac4d205bdc68fd2c3fb4758d034a13b7df2 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 6 May 2002 18:44:40 +0000 Subject: drop out of any intr fixup activities if was disabled in the config flags --- sys/arch/i386/pci/pci_intr_fixup.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/pci/pci_intr_fixup.c b/sys/arch/i386/pci/pci_intr_fixup.c index a5e2d5c9791..da519ee0cf8 100644 --- a/sys/arch/i386/pci/pci_intr_fixup.c +++ b/sys/arch/i386/pci/pci_intr_fixup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_intr_fixup.c,v 1.22 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pci_intr_fixup.c,v 1.23 2002/05/06 18:44:39 mickey Exp $ */ /* $NetBSD: pci_intr_fixup.c,v 1.10 2000/08/10 21:18:27 soda Exp $ */ /* @@ -498,6 +498,9 @@ pci_intr_route_link(pc, ihp) int rv = 1; char *p = NULL; + if (pcibios_flags & PCIBIOS_INTR_FIXUP) + return 1; + l = ihp->link; if (!l || pciintr_icu_tag == NULL) return (1); @@ -556,6 +559,9 @@ pci_intr_post_fixup() struct pciintr_link_map *l; int i, pciirq; + if (pcibios_flags & PCIBIOS_INTR_FIXUP) + return 1; + if (!pciintr_icu_handle) return 0; @@ -598,6 +604,9 @@ pci_intr_header_fixup(pc, tag, ihp) int irq, link, bus, device, function; char *p = NULL; + if (pcibios_flags & PCIBIOS_INTR_FIXUP) + return 1; + irq = ihp->line; ihp->link = NULL; ihp->tag = tag; -- cgit v1.2.3