Struct x86_64::registers::control::Cr0Flags [−][src]
pub struct Cr0Flags { /* fields omitted */ }
Expand description
Configuration flags of the Cr0 register.
Implementations
impl Cr0Flags
[src]
impl Cr0Flags
[src]pub const PROTECTED_MODE_ENABLE: Cr0Flags
[src]
pub const PROTECTED_MODE_ENABLE: Cr0Flags
[src]Enables protected mode.
pub const MONITOR_COPROCESSOR: Cr0Flags
[src]
pub const MONITOR_COPROCESSOR: Cr0Flags
[src]Enables monitoring of the coprocessor, typical for x87 instructions.
Controls together with the TASK_SWITCHED
flag whether a wait
or fwait
instruction should cause a device-not-available exception.
pub const EMULATE_COPROCESSOR: Cr0Flags
[src]
pub const EMULATE_COPROCESSOR: Cr0Flags
[src]Force all x87 and MMX instructions to cause an exception.
pub const TASK_SWITCHED: Cr0Flags
[src]
pub const TASK_SWITCHED: Cr0Flags
[src]Automatically set to 1 on hardware task switch.
This flags allows lazily saving x87/MMX/SSE instructions on hardware context switches.
pub const NUMERIC_ERROR: Cr0Flags
[src]
pub const NUMERIC_ERROR: Cr0Flags
[src]Enables the native error reporting mechanism for x87 FPU errors.
pub const WRITE_PROTECT: Cr0Flags
[src]
pub const WRITE_PROTECT: Cr0Flags
[src]Controls whether supervisor-level writes to read-only pages are inhibited.
When set, it is not possible to write to read-only pages from ring 0.
pub const ALIGNMENT_MASK: Cr0Flags
[src]
pub const ALIGNMENT_MASK: Cr0Flags
[src]Enables automatic alignment checking.
pub const NOT_WRITE_THROUGH: Cr0Flags
[src]
pub const NOT_WRITE_THROUGH: Cr0Flags
[src]Ignored. Used to control write-back/write-through cache strategy on older CPUs.
pub const CACHE_DISABLE: Cr0Flags
[src]
pub const CACHE_DISABLE: Cr0Flags
[src]Disables internal caches (only for some cases).
pub fn from_bits(bits: u64) -> Option<Cr0Flags>
[src]
pub fn from_bits(bits: u64) -> Option<Cr0Flags>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> Cr0Flags
[src]
pub const fn from_bits_truncate(bits: u64) -> Cr0Flags
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> Cr0Flags
[src]
pub const unsafe fn from_bits_unchecked(bits: u64) -> Cr0Flags
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: Cr0Flags) -> bool
[src]
pub const fn intersects(&self, other: Cr0Flags) -> bool
[src]Returns true
if there are flags common to both self
and other
.
Trait Implementations
impl BitAndAssign<Cr0Flags> for Cr0Flags
[src]
impl BitAndAssign<Cr0Flags> for Cr0Flags
[src]fn bitand_assign(&mut self, other: Cr0Flags)
[src]
fn bitand_assign(&mut self, other: Cr0Flags)
[src]Disables all flags disabled in the set.
impl BitOrAssign<Cr0Flags> for Cr0Flags
[src]
impl BitOrAssign<Cr0Flags> for Cr0Flags
[src]fn bitor_assign(&mut self, other: Cr0Flags)
[src]
fn bitor_assign(&mut self, other: Cr0Flags)
[src]Adds the set of flags.
impl BitXorAssign<Cr0Flags> for Cr0Flags
[src]
impl BitXorAssign<Cr0Flags> for Cr0Flags
[src]fn bitxor_assign(&mut self, other: Cr0Flags)
[src]
fn bitxor_assign(&mut self, other: Cr0Flags)
[src]Toggles the set of flags.
impl Extend<Cr0Flags> for Cr0Flags
[src]
impl Extend<Cr0Flags> for Cr0Flags
[src]fn extend<T: IntoIterator<Item = Cr0Flags>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = Cr0Flags>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<Cr0Flags> for Cr0Flags
[src]
impl FromIterator<Cr0Flags> for Cr0Flags
[src]impl Ord for Cr0Flags
[src]
impl Ord for Cr0Flags
[src]impl PartialOrd<Cr0Flags> for Cr0Flags
[src]
impl PartialOrd<Cr0Flags> for Cr0Flags
[src]fn partial_cmp(&self, other: &Cr0Flags) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Cr0Flags) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<Cr0Flags> for Cr0Flags
[src]
impl SubAssign<Cr0Flags> for Cr0Flags
[src]fn sub_assign(&mut self, other: Cr0Flags)
[src]
fn sub_assign(&mut self, other: Cr0Flags)
[src]Disables all flags enabled in the set.