Skip to main content

EXTENSIONS_READY

Static EXTENSIONS_READY 

Source
static EXTENSIONS_READY: AtomicBool
Expand description

Gate for format_args-heavy logging paths.

During early boot, format_args! involving nested fmt::Arguments (e.g. record.args() inside another format_args!) can resolve to identity-mapped function pointers and #UD. This flag is set to true after init_cpu_extensions() enables CR4.OSXSAVE + XCR0, at which point all formatting is safe.