Index: apb.c =================================================================== RCS file: /home/ncvs/src/sys/sparc64/pci/apb.c,v retrieving revision 1.4 diff -u -r1.4 apb.c --- apb.c 2002/03/24 02:10:56 1.4 +++ apb.c 2003/06/09 23:33:07 @@ -207,9 +207,11 @@ * number, we should pick a better value. One sensible alternative * would be to pick 255; the only tradeoff here is that configuration * transactions would be more widely routed than absolutely necessary. + * + * If we don't hardware the bus down, pciconf gets confused. */ if (sc->secbus != 0) { - child = device_add_child(dev, "pci", -1); + child = device_add_child(dev, "pci", sc->secbus); if (child != NULL) return (bus_generic_attach(dev)); } else