Fix compile error due to lock_irq_disabled

This commit is contained in:
Yuke Peng
2024-08-19 09:02:51 +08:00
committed by Tate, Hongliang Tian
parent c6d381bc19
commit bbe43d76cc

View File

@ -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");
}