⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

switch_context

Function switch_context 

Source
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.