mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 03:13:23 +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));
|
PAGE_TABLE.call_once(|| SpinLock::new(root_table));
|
||||||
|
|
||||||
// Enable DMA remapping
|
// 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());
|
iommu_regs.enable_dma_remapping(PAGE_TABLE.get().unwrap());
|
||||||
info!("[IOMMU] DMA remapping enabled");
|
info!("[IOMMU] DMA remapping enabled");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user