I'm so dumb
This commit is contained in:
parent
4a50a9e027
commit
3fd24133e9
@ -112,7 +112,7 @@ void PCI::scan(void (*callback)(PCI::Device&))
|
|||||||
// Multiple PCI host controllers
|
// Multiple PCI host controllers
|
||||||
for (function = 0; function < 8; function++)
|
for (function = 0; function < 8; function++)
|
||||||
{
|
{
|
||||||
if (get_device_id(0, 0, function).vendor != 0xFFFF) break;
|
if (get_device_id(0, 0, function).vendor == 0xFFFF) break;
|
||||||
bus = function;
|
bus = function;
|
||||||
pci_scan_bus(bus, callback);
|
pci_scan_bus(bus, callback);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user