pub unsafe fn switch_context(
from: &mut ArchThreadContext,
to: &ArchThreadContext,
)Expand description
Perform a context switch between two threads
§Safety
This function must be called with interrupts disabled and both contexts must be valid.