Function taskctx::context_switch

source ·
pub unsafe extern "C" fn context_switch(
    _current_stack: &mut u64,
    _next_stack: &u64
)
Expand description

Switches the context from the current task to the next task.

Safety

This function is unsafe because it directly manipulates the CPU registers.