mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 04:26:39 +00:00
Refine documentations
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b198794e3e
commit
c6d381bc19
@ -33,6 +33,8 @@ impl FaultEventRegisters {
|
|||||||
FaultStatus::from_bits_truncate(self.status.read())
|
FaultStatus::from_bits_truncate(self.status.read())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Create an instance from base address.
|
||||||
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// User must ensure the base_register_vaddr is read from DRHD
|
/// User must ensure the base_register_vaddr is read from DRHD
|
||||||
@ -199,6 +201,8 @@ bitflags! {
|
|||||||
|
|
||||||
pub(super) static FAULT_EVENT_REGS: Once<FaultEventRegisters> = Once::new();
|
pub(super) static FAULT_EVENT_REGS: Once<FaultEventRegisters> = Once::new();
|
||||||
|
|
||||||
|
/// Initializes the fault reporting function.
|
||||||
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// User must ensure the base_register_vaddr is read from DRHD
|
/// User must ensure the base_register_vaddr is read from DRHD
|
||||||
|
Reference in New Issue
Block a user