Struct x86_64::registers::control::Cr4 [−][src]
pub struct Cr4;
Expand description
Various control flags modifying the basic operation of the CPU while in protected mode.
Note: The documention for the individual fields is taken from the AMD64 and Intel x86_64 manuals.
Implementations
impl Cr4
[src]
impl Cr4
[src]pub unsafe fn write(flags: Cr4Flags)
[src]
pub unsafe fn write(flags: Cr4Flags)
[src]Write CR4 flags.
Preserves the value of reserved fields.
Safety
This function is unsafe because it’s possible to violate memory safety through it, e.g. by overwriting the physical address extension flag.