Make handle interrupt non-mutable in ahci controller.
This commit is contained in:
parent
017367c4de
commit
c97d39c36b
2 changed files with 45 additions and 40 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue