summaryrefslogtreecommitdiff
path: root/Kernel/Bus/PCI
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-15 09:03:10 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-19 21:54:41 +0200
commit0833ae0b3619b8c294bc5bddf152d9c2ac4d92d3 (patch)
treec310d4370f428cd0a3ce1821a9e2f01655057bbb /Kernel/Bus/PCI
parent667a009cd72a0adcea0fc9f8e8b8a1a6e05c86e1 (diff)
downloadserenity-0833ae0b3619b8c294bc5bddf152d9c2ac4d92d3.zip
Kernel/PCI: Don't hardcode Address domain to 0 when enumerating devices
Diffstat (limited to 'Kernel/Bus/PCI')
-rw-r--r--Kernel/Bus/PCI/Controller/HostBridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/PCI/Controller/HostBridge.cpp b/Kernel/Bus/PCI/Controller/HostBridge.cpp
index 319d24be05..6d7748619e 100644
--- a/Kernel/Bus/PCI/Controller/HostBridge.cpp
+++ b/Kernel/Bus/PCI/Controller/HostBridge.cpp
@@ -53,7 +53,7 @@ UNMAP_AFTER_INIT Vector<Capability> HostBridge::get_capabilities_for_function(Bu
UNMAP_AFTER_INIT void HostBridge::enumerate_functions(Function<void(DeviceIdentifier)> const& callback, BusNumber bus, DeviceNumber device, FunctionNumber function, bool recursive_search_into_bridges)
{
dbgln_if(PCI_DEBUG, "PCI: Enumerating function, bus={}, device={}, function={}", bus, device, function);
- Address address(0, bus.value(), device.value(), function.value());
+ Address address(domain_number(), bus.value(), device.value(), function.value());
auto pci_class = (read8_field(bus, device, function, PCI::RegisterOffset::CLASS) << 8u) | read8_field(bus, device, function, PCI::RegisterOffset::SUBCLASS);
HardwareID id = { read16_field(bus, device, function, PCI::RegisterOffset::VENDOR_ID), read16_field(bus, device, function, PCI::RegisterOffset::DEVICE_ID) };