pub struct Context {
pub segments: [u64; 4],
pub fxsave: [u8; 512],
pub gprs: [u64; 15],
/* private fields */
}Expand description
Saved CPU context pushed onto the stack by exception entry code.
This structure contains all the saved CPU state needed to resume execution after handling an exception. It includes segment registers, floating-point state, and general-purpose registers.
Fields§
§segments: [u64; 4]Segment registers in order: GS, FS, ES, DS.
fxsave: [u8; 512]FPU/SSE state saved via FXSAVE instruction (512 bytes).
gprs: [u64; 15]General-purpose registers (RAX through R15, excluding RSP).
The stack pointer (RSP) is not included here since it’s saved
by the processor in the ExceptionInfo structure.
R15 is at index 0, RAX is at index 14.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more