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

task context structure containing some registers

Fields

ra: usize

Ret position after task switching

sp: usize

Stack pointer

s: [usize; 12]

s0-11 register, callee saved

Implementations

Create a new empty task context

Create a new task context with a trap return addr and a kernel stack pointer

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.