svn commit: r241387 - projects/bhyve/sys/dev/acpica

Neel Natu neel at FreeBSD.org
Wed Oct 10 00:11:07 UTC 2012


Author: neel
Date: Wed Oct 10 00:11:06 2012
New Revision: 241387
URL: http://svn.freebsd.org/changeset/base/241387

Log:
  Grab the softc from the ACPI host-pci bridge device instead of from the pci
  endpoint device.
  
  Reviewed by:	jhb

Modified:
  projects/bhyve/sys/dev/acpica/acpi_pcib_acpi.c

Modified: projects/bhyve/sys/dev/acpica/acpi_pcib_acpi.c
==============================================================================
--- projects/bhyve/sys/dev/acpica/acpi_pcib_acpi.c	Wed Oct 10 00:06:31 2012	(r241386)
+++ projects/bhyve/sys/dev/acpica/acpi_pcib_acpi.c	Wed Oct 10 00:11:06 2012	(r241387)
@@ -502,7 +502,7 @@ acpi_pcib_map_msi(device_t pcib, device_
 	if (error)
 		return (error);
 
-	sc = device_get_softc(dev);
+	sc = device_get_softc(pcib);
 	if (sc->ap_addr == -1)
 		return (0);
 	/* XXX: Assumes all bridges are on bus 0. */


More information about the svn-src-projects mailing list