Trait aster_frame::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§
sourcefn trap_number(&self) -> usize
fn trap_number(&self) -> usize
Gets the trap number of this interrupt.
sourcefn trap_error_code(&self) -> usize
fn trap_error_code(&self) -> usize
Gets the trap error code of this interrupt.
sourcefn set_instruction_pointer(&mut self, ip: usize)
fn set_instruction_pointer(&mut self, ip: usize)
Sets the instruction pointer
sourcefn instruction_pointer(&self) -> usize
fn instruction_pointer(&self) -> usize
Gets the instruction pointer
sourcefn set_stack_pointer(&mut self, sp: usize)
fn set_stack_pointer(&mut self, sp: usize)
Sets the stack pointer
sourcefn stack_pointer(&self) -> usize
fn stack_pointer(&self) -> usize
Gets the stack pointer