Kernel: Fix AML PCIConfig OpRegion accesses

Apparently I'm not supposted to calculate device/function from the
offset, but parse them from the acpi namespace :)

This allows PCI PIN interrupt routing actually work
This commit is contained in:
2025-07-04 13:21:02 +03:00
parent 544c8dbc13
commit 995dfa1455
2 changed files with 63 additions and 18 deletions

View File

@@ -87,6 +87,12 @@ namespace Kernel::ACPI::AML
struct OpRegion
{
GAS::AddressSpaceID address_space;
uint16_t seg;
uint8_t bus;
uint8_t dev;
uint8_t func;
uint64_t offset;
uint64_t length;
};