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

Module context

Module context 

Source
Expand description

x86_64 context switching implementation

Structs§

FpuState
x86_64 FPU/SSE/AVX state
X86_64Context
x86_64 CPU context

Functions§

context_switch
Switch from current context to new context
enable_xsave
Enable XSAVE if supported
has_xsave
Check if CPU supports XSAVE
init_fpu
Initialize FPU for current CPU. Called from crate::arch::context::init_fpu().
load_context
Load context for first time (no previous context to save)
restore_fpu_state
Restore FPU state. Called from crate::arch::context::restore_fpu_state().
save_fpu_state
Save FPU state. Called from crate::arch::context::save_fpu_state().
switch_context
Switch context using the ThreadContext interface. Called from crate::arch::context::switch_context().