[−][src]Struct sunrise_kernel::i386::interrupt_service_routines::UserspaceHardwareContext
Represents a register backup.
The exception wrapper constructs this structure before calling the exception handler, and saves it to the ThreadStruct for debug purposes.
When the exception handler returns, the wrapper pops it before returning to
userspace, allowing precise control over register state.
The only exception being .esp
, which will not be reloaded into esp
, see trap_gate_asm.
Fields
esp: usize
gs: usize
ebp: usize
edi: usize
esi: usize
edx: usize
ecx: usize
ebx: usize
eax: usize
errcode: usize
eip: usize
cs: usize
eflags: usize
Implementations
impl UserspaceHardwareContext
[src]
fn apply0(&mut self, ret: Result<(), UserspaceError>)
[src]
Update the Registers with the passed result.
fn apply1(&mut self, ret: Result<usize, UserspaceError>)
[src]
Update the Registers with the passed result.
fn apply2(&mut self, ret: Result<(usize, usize), UserspaceError>)
[src]
Update the Registers with the passed result.
fn apply3(&mut self, ret: Result<(usize, usize, usize), UserspaceError>)
[src]
Update the Registers with the passed result.
fn apply4(&mut self, ret: Result<(usize, usize, usize, usize), UserspaceError>)
[src]
Update the Registers with the passed result.
Trait Implementations
impl Clone for UserspaceHardwareContext
[src]
fn clone(&self) -> UserspaceHardwareContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UserspaceHardwareContext
[src]
impl Default for UserspaceHardwareContext
[src]
fn default() -> UserspaceHardwareContext
[src]
impl Display for UserspaceHardwareContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserspaceHardwareContext
impl Send for UserspaceHardwareContext
impl Sync for UserspaceHardwareContext
impl Unpin for UserspaceHardwareContext
impl UnwindSafe for UserspaceHardwareContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,