Skip to main content

Module switch

Module switch 

Source
Expand description

Context switch assembly — bootstrap only.

Runtime context switches are handled through TrapFrame in process::scheduler_tick; the old __switch_context is no longer needed.

ProcessContext layout (repr(C)): offset 0..248: x[31] — GPRs x1-x31 (skipping x0) offset 248: sepc: usize offset 256: sstatus: usize offset 264: satp: usize

Functions§

__start_first_task⚠