Store ahci hba and pci device header as mut references
This commit is contained in:
parent
04effd44f8
commit
017367c4de
3 changed files with 38 additions and 59 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue