Subject: Re: port-i386/31971
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Lubomir Kundrak <lkundrak@skosi.org>
List: netbsd-bugs
Date: 11/04/2005 09:03:03
The following reply was made to PR port-i386/31971; it has been noted by GNATS.

From: "Lubomir Kundrak" <lkundrak@skosi.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-i386/31971
Date: Fri, 4 Nov 2005 09:37:25 +0100 (CET)

 OOps, actually the right patch is:
 
 --- mainbus.c.orig      2005-06-22 02:58:48.000000000 +0200
 +++ mainbus.c
 @@ -202,15 +202,17 @@ mainbus_attach(parent, self, aux)
          * ACPI needs to be able to access PCI configuration space.
          */
         pci_mode = pci_mode_detect();
 +       if (pci_mode) {         /* PCI host bridge is present */
  #if defined(PCI_BUS_FIXUP)
 -       pci_maxbus = pci_bus_fixup(NULL, 0);
 -       aprint_debug("PCI bus max, after pci_bus_fixup: %i\n", pci_maxbus);
 +               pci_maxbus = pci_bus_fixup(NULL, 0);
 +               aprint_debug("PCI bus max, after pci_bus_fixup: %i\n",
 pci_maxbus);
  #if defined(PCI_ADDR_FIXUP)
 -       pciaddr.extent_port = NULL;
 -       pciaddr.extent_mem = NULL;
 -       pci_addr_fixup(NULL, pci_maxbus);
 +               pciaddr.extent_port = NULL;
 +               pciaddr.extent_mem = NULL;
 +               pci_addr_fixup(NULL, pci_maxbus);
  #endif
  #endif
 +       }
  #endif
 
  #if NACPI > 0