diff --git a/ostd/src/arch/x86/iommu/fault.rs b/ostd/src/arch/x86/iommu/fault.rs index daea41f7f..4a3de6793 100644 --- a/ostd/src/arch/x86/iommu/fault.rs +++ b/ostd/src/arch/x86/iommu/fault.rs @@ -33,6 +33,8 @@ impl FaultEventRegisters { FaultStatus::from_bits_truncate(self.status.read()) } + /// Create an instance from base address. + /// /// # Safety /// /// User must ensure the base_register_vaddr is read from DRHD @@ -199,6 +201,8 @@ bitflags! { pub(super) static FAULT_EVENT_REGS: Once = Once::new(); +/// Initializes the fault reporting function. +/// /// # Safety /// /// User must ensure the base_register_vaddr is read from DRHD