Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi acpimcfg_scan_bus: Assign the pci_softc's sc_pc...
details: https://anonhg.NetBSD.org/src/rev/004d1340f9f0
branches: trunk
changeset: 433946:004d1340f9f0
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Oct 13 13:32:50 2018 +0000
description:
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.
diffstat:
sys/dev/acpi/acpi_mcfg.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3759a741e0e0 -r 004d1340f9f0 sys/dev/acpi/acpi_mcfg.c
--- a/sys/dev/acpi/acpi_mcfg.c Sat Oct 13 08:32:36 2018 +0000
+++ b/sys/dev/acpi/acpi_mcfg.c Sat Oct 13 13:32:50 2018 +0000
@@ -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 <nonaka%NetBSD.org@localhost>
@@ -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 @@
};
sc->sc_bus = bus; /* XXX */
+ sc->sc_pc = pc;
pci_enumerate_bus(sc, wildcard, acpimcfg_device_probe, NULL);
}
Home |
Main Index |
Thread Index |
Old Index