Make handle interrupt non-mutable in ahci controller.

This commit is contained in:
Drew Galbraith 2025-01-31 22:07:33 -08:00
parent 017367c4de
commit c97d39c36b
2 changed files with 45 additions and 40 deletions

View file

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