Module Name: src Committed By: jmcneill Date: Sat Oct 13 13:32:50 UTC 2018
Modified Files: src/sys/dev/acpi: acpi_mcfg.c Log Message: acpimcfg_scan_bus: Assign the pci_softc's sc_pc to the passed in PCI chipset tag -- pci_enumerate_bus depends on this being initialized. This happened to work on x86 because the pci_* md code allows for NULL pc. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/acpi/acpi_mcfg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_mcfg.c diff -u src/sys/dev/acpi/acpi_mcfg.c:1.6 src/sys/dev/acpi/acpi_mcfg.c:1.7 --- src/sys/dev/acpi/acpi_mcfg.c:1.6 Fri Apr 6 17:30:25 2018 +++ src/sys/dev/acpi/acpi_mcfg.c Sat Oct 13 13:32:50 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_mcfg.c,v 1.6 2018/04/06 17:30:25 maxv Exp $ */ +/* $NetBSD: acpi_mcfg.c,v 1.7 2018/10/13 13:32:50 jmcneill Exp $ */ /*- * Copyright (C) 2015 NONAKA Kimihiro <non...@netbsd.org> @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.6 2018/04/06 17:30:25 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_mcfg.c,v 1.7 2018/10/13 13:32:50 jmcneill Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -527,6 +527,7 @@ acpimcfg_scan_bus(struct pci_softc *sc, }; sc->sc_bus = bus; /* XXX */ + sc->sc_pc = pc; pci_enumerate_bus(sc, wildcard, acpimcfg_device_probe, NULL); }