Store ahci hba and pci device header as mut references

This commit is contained in:
Drew Galbraith 2025-01-31 21:38:06 -08:00
parent 04effd44f8
commit 017367c4de
3 changed files with 38 additions and 59 deletions

View file

@ -21,8 +21,7 @@ extern "C" fn main() -> z_err_t {
.expect("Failed to get ahci info");
let ahci_controller = Arc::new(Mutex::new(AhciController::new(
mammoth::mem::MemoryRegion::from_cap(mammoth::cap::Capability::take(ahci_info.ahci_region))
.unwrap(),
mammoth::cap::Capability::take(ahci_info.ahci_region),
)));
let thread = spawn_irq_thread(ahci_controller.clone());