X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/6d75e31596b5ac2e638c8a31c6c2185ee4053b6b..8328d66ad5de53d630db5b32a155404181733843:/lunaix-os/hal/pci.c diff --git a/lunaix-os/hal/pci.c b/lunaix-os/hal/pci.c index aa6acd1..04c7575 100644 --- a/lunaix-os/hal/pci.c +++ b/lunaix-os/hal/pci.c @@ -73,7 +73,7 @@ pci_probe() { // 暴力扫描所有PCI设备 // XXX: 尽管最多会有256条PCI总线,但就目前而言,只考虑bus #0就足够了 - for (int bus = 0; bus < 1; bus++) { + for (int bus = 0; bus < 256; bus++) { for (int dev = 0; dev < 32; dev++) { pci_probe_device(bus, dev, 0); }