Struct os::task::TaskContext
source · [−]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]
callee saved registers: s 0..11
Implementations
set Task Context{__restore ASM funciton: trap_return, sp: kstack_ptr, s: s_0..12}