pci_decode: check sys_rom on boot

If the ROM is already available, no signal will wakeup the pci_decode app on
sigh registration.

 genodelabs/genode#4578
This commit is contained in:
Alexander Boettcher 2022-10-10 09:40:45 +02:00 committed by Christian Helmuth
parent 1286b967ed
commit 3e8ffe179b

View File

@ -291,6 +291,9 @@ void Main::sys_rom_update()
{ {
sys_rom.update(); sys_rom.update();
if (!sys_rom.valid())
return;
Xml_node xml = sys_rom.xml(); Xml_node xml = sys_rom.xml();
if (apic_capable) { if (apic_capable) {
@ -320,6 +323,8 @@ Main::Main(Env & env) : env(env)
apic_capable = xml.attribute_value("acpi", false); apic_capable = xml.attribute_value("acpi", false);
msi_capable = xml.attribute_value("msi", false); msi_capable = xml.attribute_value("msi", false);
}); });
sys_rom_update();
} }