mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Fix compile error due to lock_irq_disabled
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c6d381bc19
commit
bbe43d76cc
@ -69,7 +69,7 @@ pub fn init() {
|
||||
PAGE_TABLE.call_once(|| SpinLock::new(root_table));
|
||||
|
||||
// Enable DMA remapping
|
||||
let mut iommu_regs = IOMMU_REGS.get().unwrap().lock_irq_disabled();
|
||||
let mut iommu_regs = IOMMU_REGS.get().unwrap().lock();
|
||||
iommu_regs.enable_dma_remapping(PAGE_TABLE.get().unwrap());
|
||||
info!("[IOMMU] DMA remapping enabled");
|
||||
}
|
||||
|
Reference in New Issue
Block a user