#[repr(transparent)]
pub struct ControlRegister3(_);
Available on x86 or x86-64 only.
Expand description

CR3: System control register that contains the top-level page table address and two associated caching flags.

Getters and setters for this structure only access a value in memory, not the register itself. Use the get and set methods to work with the actual register.

Implementations§

CR3.PWT: Enables write-through caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

CR3.PCD: Disables caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

Available on x86-64 only.

CR4.PCIDE: The process-context identifier (PCID) associated with this series of page tables.

Requires 64-bit mode and ControlRegister4::process_context_ids.

CR3.PWT: Enables write-through caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

CR3.PWT: Enables write-through caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

CR3.PCD: Disables caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

CR3.PCD: Disables caching for the top-level page table.

Does not apply when ControlRegister4::process_context_ids or ControlRegister4::physical_address_extension is enabled.

Available on x86-64 only.

CR4.PCIDE: The process-context identifier (PCID) associated with this series of page tables.

Requires 64-bit mode and ControlRegister4::process_context_ids.

Available on x86-64 only.

CR4.PCIDE: The process-context identifier (PCID) associated with this series of page tables.

Requires 64-bit mode and ControlRegister4::process_context_ids.

Retrieve the current value of this register

Update the register to the given value.

Safety

Altering certain system flags can have dramatic effects on the execution of this and other programs, including memory safety.

Get the address of the top-level page table.

Set the address of the top-level page table.

Panics

Panics if the new address is not 4K-aligned.

Trait Implementations§

Construct a new bitfield type from its underlying representation
Unwrap the bitfield into its underlying representation
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.