Comments
This commit is contained in:
@ -1,16 +1,14 @@
|
||||
use core::{fmt, ops::Deref};
|
||||
|
||||
use crate::os::EFlags;
|
||||
|
||||
use super::VirtAddr;
|
||||
use crate::os::EFlags;
|
||||
|
||||
/// Wrapper type for the interrupt stack frame pushed by the CPU.
|
||||
///
|
||||
/// This type derefs to an [`InterruptStackFrameValue`], which allows reading the actual values.
|
||||
///
|
||||
/// This wrapper type ensures that no accidental modification of the interrupt stack frame
|
||||
/// occurs, which can cause undefined behavior (see the [`as_mut`](InterruptStackFrame::as_mut)
|
||||
/// method for more information).
|
||||
/// This wrapper ensures that the stack frame cannot be modified.
|
||||
/// This prevents undefined behavior.
|
||||
#[repr(transparent)]
|
||||
pub struct InterruptStackFrame(InterruptStackFrameValue);
|
||||
|
||||
|
Reference in New Issue
Block a user