Trait ostd::user::UserContextApi

source ·
pub trait UserContextApi {
    // Required methods
    fn trap_number(&self) -> usize;
    fn trap_error_code(&self) -> usize;
    fn set_instruction_pointer(&mut self, ip: usize);
    fn instruction_pointer(&self) -> usize;
    fn set_stack_pointer(&mut self, sp: usize);
    fn stack_pointer(&self) -> usize;
}
Expand description

The common interface that every CPU architecture-specific UserContext implements.

Required Methods§

source

fn trap_number(&self) -> usize

Gets the trap number of this interrupt.

source

fn trap_error_code(&self) -> usize

Gets the trap error code of this interrupt.

source

fn set_instruction_pointer(&mut self, ip: usize)

Sets the instruction pointer

source

fn instruction_pointer(&self) -> usize

Gets the instruction pointer

source

fn set_stack_pointer(&mut self, sp: usize)

Sets the stack pointer

source

fn stack_pointer(&self) -> usize

Gets the stack pointer

Implementors§