Struct lambdaOS::task::context::Context
[−]
[src]
pub struct Context { pub cr3: usize, pub rsp: usize, // some fields omitted }
Fields
cr3: usize
rsp: usize
Methods
impl Context
[src]
fn new() -> Self
[src]
unsafe extern "C" fn switch_to(&mut self, next: &mut Context)
[src]
Switch to the new context.
fn set_page_table(&mut self, address: usize)
[src]
Set the active page table of this context.
fn set_stack(&mut self, address: usize)
[src]
Set stack pointer.
Trait Implementations
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more