pci_decode: count MSI numbers beginning from one

Ref genodelabs/genode#4578
This commit is contained in:
Stefan Kalkowski 2022-09-27 15:13:01 +02:00 committed by Christian Helmuth
parent 5956dd591f
commit 6a36e8a8dc

View File

@ -37,7 +37,12 @@ struct Main
Expanding_reporter pci_reporter { env, "devices", "devices" };
Registry<Bridge> bridge_registry {}; /* contains host bridges */
unsigned msi_number { 0U };
/*
* We count beginning from 1 not 0, because some clients (Linux drivers)
* do not ignore the pseudo MSI number announced, but interpret zero as
* invalid.
*/
unsigned msi_number { 1U };
bool apic_capable { false };
bool msi_capable { false };