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

init

Function init 

Source
pub fn init() -> Result<(), KernelError>
Expand description

Detect and enable Spectre mitigations.

Called during early boot from security::init(). Detects CPU features and enables available hardware mitigations. If IBRS is available, it is enabled. IBPB flushes are performed on context switches via flush_btb.