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
- cr0_
write ⚠ - Write cr0.
- cr2⚠
- Contains page-fault linear address.
- cr3⚠
- Contains page-table root pointer.
- cr4⚠
- Contains various flags to control operations in protected mode.
- cr2_
write ⚠ - Write cr2, for instance to reset cr2
- cr3_
write ⚠ - Switch page-table PML4 pointer.
- cr4_
write ⚠ - Write cr4.
- xcr0⚠
- Read Extended Control Register XCR0. Only supported if CR4_ENABLE_OS_XSAVE is set.
- xcr0_
write ⚠ - Write to Extended Control Register XCR0. Only supported if CR4_ENABLE_OS_XSAVE is set.