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

Task Context

Fields

ra: usize

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

sp: usize

kernel stack pointer of app

s: [usize; 12]

callee saved registers: s 0..11

Implementations

init task context

set task context {__restore ASM funciton, kernel stack, s_0..12 }

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.