#[repr(C)]
pub struct TaskContext { ra: usize, sp: usize, s: [usize; 12], }
Expand description

task context structure containing some registers

Fields

ra: usize

return address ( e.g. __restore ) of __switch ASM function

sp: usize

kernel stack pointer of app

s: [usize; 12]

s0-11 register, callee saved

Implementations

init task context

set Task Context{__restore ASM funciton: trap_return, sp: kstack_ptr, s: s_0..12}

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.