Expand description

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

Structs

Functions

cr0
Read cr0
Write cr0.
cr2
Contains page-fault linear address.
Write cr2, for instance to reset cr2
cr3
Contains page-table root pointer.
Switch page-table PML4 pointer.
cr4
Contains various flags to control operations in protected mode.
Write cr4.
xcr0
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.