hwd: launch pcid after acpid but before probe

This commit is contained in:
Jeremy Soller
2025-11-22 17:30:52 -07:00
parent 2ee3a846fb
commit ccd8d8f158
+18
View File
@@ -1,3 +1,5 @@
use std::process::Command;
mod backend;
use self::backend::{AcpiBackend, Backend, DeviceTreeBackend, LegacyBackend};
@@ -33,6 +35,22 @@ fn main() {
}
};
//TODO: launch pcid based on backend information?
// Must launch after acpid but before probe calls /scheme/acpi/symbols
match Command::new("pcid").spawn() {
Ok(mut child) => match child.wait() {
Ok(status) => if !status.success() {
log::error!("pcid exited with status {}", status);
},
Err(err) => {
log::error!("failed to wait for pcid: {}", err);
}
},
Err(err) => {
log::error!("failed to spawn pcid: {}", err);
}
}
//TODO: HWD is meant to locate PCI/XHCI/etc devices in ACPI and DeviceTree definitions and start their drivers
match backend.probe() {
Ok(()) => {}