--- //depot/yahoo/ybsd_9/src/sys/dev/acpica/acpi_pcib.c 2011-11-02 23:46:55.000000000 0000 +++ /home/seanbru/ybsd_9/sys/dev/acpica/acpi_pcib.c 2011-11-02 23:46:55.000000000 0000 @@ -74,8 +74,10 @@ char *prtptr; /* First check to see if there is a table to walk. */ - if (prt == NULL || prt->Pointer == NULL) - return; + if (prt == NULL || prt->Pointer == NULL) { + printf("%s found NULL prt\n",__func__); + return; + } /* Walk the table executing the handler function for each entry. */ prtptr = prt->Pointer; @@ -139,8 +141,10 @@ * XXX: This isn't entirely correct since we may be a PCI bus * on a hot-plug docking station, etc. */ - if (!acpi_DeviceIsPresent(dev)) - return_VALUE(ENXIO); + if (!acpi_DeviceIsPresent(dev)) { + device_printf(dev, "This device is not present\n"); + return_VALUE(ENXIO); + } /* * Get the PCI interrupt routing table for this bus. If we can't --- //depot/yahoo/ybsd_9/src/sys/dev/acpica/acpi_pcib_pci.c 2011-11-02 23:46:55.000000000 0000 +++ /home/seanbru/ybsd_9/sys/dev/acpica/acpi_pcib_pci.c 2011-11-02 23:46:55.000000000 0000 @@ -114,13 +114,16 @@ acpi_pcib_pci_attach(device_t dev) { struct acpi_pcib_softc *sc; + int err_attach; ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); pcib_attach_common(dev); sc = device_get_softc(dev); sc->ap_handle = acpi_get_handle(dev); - return (acpi_pcib_attach(dev, &sc->ap_prt, sc->ap_pcibsc.secbus)); + err_attach = acpi_pcib_attach(dev, &sc->ap_prt, sc->ap_pcibsc.secbus); + device_printf(dev, "%s: err_attach(%d)\n", __func__, err_attach); + return (err_attach); }