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

context_switch

Function context_switch 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn context_switch( current: *mut X86_64Context, next: *const X86_64Context, )
Expand description

Switch from current context to new context

§Safety

This function manipulates CPU state directly and must be called with interrupts disabled.