Module context

Source
Expand description

CPU execution context control.

ModulesΒ§

cpuid
Support for the CPUID instructions.
tdx πŸ”’

MacrosΒ§

cpu_context_impl_getter_setter πŸ”’
define_cpu_exception πŸ”’

StructsΒ§

CpuExceptionInfo
CPU exception information.
FpuState
The FPU state of user task.
FxSaveArea πŸ”’
GeneralRegs
General registers.
PageFaultErrorCode
Page Fault error code. Following the Intel Architectures Software Developer’s Manual Volume 3
UserContext
Userspace CPU context, including both general-purpose registers and FPU state.
XSaveArea πŸ”’
The modern FPU state format (as saved by the XSAVE`` and restored by the XRSTOR` instructions).

EnumsΒ§

CpuException
CPU exception.
CpuExceptionType
As Osdev Wiki defines(https://wiki.osdev.org/Exceptions): CPU exceptions are classified as:

ConstantsΒ§

MAX_XSAVE_AREA_SIZE πŸ”’
The max size in bytes of the XSAVE area.
XFEATURE_MASK_USER_RESTORE πŸ”’
Mask features which are restored when returning to user space.

StaticsΒ§

XSAVE_AREA_SIZE πŸ”’
The real size in bytes of the XSAVE area containing all states enabled by XCRO | IA32_XSS.
XSTATE_MAX_FEATURES πŸ”’
The XSTATE features (user & supervisor) supported by the processor.

FunctionsΒ§

enable_essential_features πŸ”’