From f29e7e30fde2b994c86024659b41f56b64dce911 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 18 Nov 2025 22:09:11 +0100 Subject: fix: kernel: OpenHeFS and NeFS fixes, PCI and DriveMgr fixes. Signed-off-by: Amlal El Mahrouss --- dev/kernel/HALKit/AMD64/PCI/Iterator.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dev/kernel/HALKit/AMD64/PCI') diff --git a/dev/kernel/HALKit/AMD64/PCI/Iterator.cc b/dev/kernel/HALKit/AMD64/PCI/Iterator.cc index 9d12c0d6..88bbce3f 100644 --- a/dev/kernel/HALKit/AMD64/PCI/Iterator.cc +++ b/dev/kernel/HALKit/AMD64/PCI/Iterator.cc @@ -7,12 +7,12 @@ #include namespace Kernel::PCI { -Iterator::Iterator(const Types::PciDeviceKind& type) { +Iterator::Iterator(const Types::PciDeviceKind type, UInt32 bar) { // probe devices. - for (int bus = 0; bus < NE_BUS_COUNT; ++bus) { - for (int device = 0; device < NE_DEVICE_COUNT; ++device) { - for (int function = 0; function < NE_FUNCTION_COUNT; ++function) { - Device dev(bus, device, function, 0x00); + for (Int32 bus = 0; bus < NE_BUS_COUNT; ++bus) { + for (Int32 device = 0; device < NE_DEVICE_COUNT; ++device) { + for (Int32 function = 0; function < NE_FUNCTION_COUNT; ++function) { + Device dev(bus, device, function, bar); if (dev.Class() == type) { fDevices[bus] = dev; -- cgit v1.2.3