Module os::task::switch

source ·
Expand description

Rust wrapper around __switch.

Switching to a different task’s context happens here. The actual implementation must not be in Rust and (essentially) has to be in assembly language (Do you know why?), so this module really is just a wrapper around switch.S.

Functions§

  • Switch to the context of next_task_cx_ptr, saving the current context in current_task_cx_ptr.