Expand description

Functions to read and write control registers. See Intel Vol. 3a Section 2.5, especially Figure 2-7.

Structs

Functions

Read cr0

Write cr0.

Contains page-fault linear address.

Write cr2, for instance to reset cr2

Contains page-table root pointer.

Switch page-table PML4 pointer.

Contains various flags to control operations in protected mode.

Write cr4.

Read Extended Control Register XCR0. Only supported if CR4_ENABLE_OS_XSAVE is set.

Write to Extended Control Register XCR0. Only supported if CR4_ENABLE_OS_XSAVE is set.