pub struct ExtendedFeatureEnableRegister(/* private fields */);
Expand description
IA32_EFER
: Model-specific register that controls features relating to 64-bit
operation.
Implementations§
Source§impl ExtendedFeatureEnableRegister
impl ExtendedFeatureEnableRegister
Sourcepub fn long_mode_enabled(&self) -> bool
pub fn long_mode_enabled(&self) -> bool
IA32_EFER.LME
: Support 64-bit mode.
Sourcepub fn long_mode_active(&self) -> bool
pub fn long_mode_active(&self) -> bool
IA32_EFER.LMA
: Indicates 64-bit mode is active. Read-only.
This is logically the equivalent to [Self::long_mode_enabled] & [ControlRegister0::paging]
.
Sourcepub fn no_execute(&self) -> bool
pub fn no_execute(&self) -> bool
IA32-EFER.NXE
: Support no-execute (NX) bit in page tables.
Sourcepub fn set_syscall(&mut self, value: bool)
pub fn set_syscall(&mut self, value: bool)
IA32_EFER.SCE
: Support SYSCALL
/SYSRET
in 64-bit mode.
Sourcepub fn with_syscall(&mut self, value: bool) -> Self
pub fn with_syscall(&mut self, value: bool) -> Self
IA32_EFER.SCE
: Support SYSCALL
/SYSRET
in 64-bit mode.
Sourcepub fn set_long_mode_enabled(&mut self, value: bool)
pub fn set_long_mode_enabled(&mut self, value: bool)
IA32_EFER.LME
: Support 64-bit mode.
Sourcepub fn with_long_mode_enabled(&mut self, value: bool) -> Self
pub fn with_long_mode_enabled(&mut self, value: bool) -> Self
IA32_EFER.LME
: Support 64-bit mode.
Sourcepub fn set_long_mode_active(&mut self, value: bool)
pub fn set_long_mode_active(&mut self, value: bool)
IA32_EFER.LMA
: Indicates 64-bit mode is active. Read-only.
This is logically the equivalent to [Self::long_mode_enabled] & [ControlRegister0::paging]
.
Sourcepub fn with_long_mode_active(&mut self, value: bool) -> Self
pub fn with_long_mode_active(&mut self, value: bool) -> Self
IA32_EFER.LMA
: Indicates 64-bit mode is active. Read-only.
This is logically the equivalent to [Self::long_mode_enabled] & [ControlRegister0::paging]
.
Sourcepub fn set_no_execute(&mut self, value: bool)
pub fn set_no_execute(&mut self, value: bool)
IA32-EFER.NXE
: Support no-execute (NX) bit in page tables.
Sourcepub fn with_no_execute(&mut self, value: bool) -> Self
pub fn with_no_execute(&mut self, value: bool) -> Self
IA32-EFER.NXE
: Support no-execute (NX) bit in page tables.
Trait Implementations§
Source§impl Bitfield<u64> for ExtendedFeatureEnableRegister
impl Bitfield<u64> for ExtendedFeatureEnableRegister
Source§impl Clone for ExtendedFeatureEnableRegister
impl Clone for ExtendedFeatureEnableRegister
Source§fn clone(&self) -> ExtendedFeatureEnableRegister
fn clone(&self) -> ExtendedFeatureEnableRegister
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ExtendedFeatureEnableRegister
impl Default for ExtendedFeatureEnableRegister
Source§fn default() -> ExtendedFeatureEnableRegister
fn default() -> ExtendedFeatureEnableRegister
Source§impl From<ExtendedFeatureEnableRegister> for u64
impl From<ExtendedFeatureEnableRegister> for u64
Source§fn from(val: ExtendedFeatureEnableRegister) -> Self
fn from(val: ExtendedFeatureEnableRegister) -> Self
Source§impl From<u64> for ExtendedFeatureEnableRegister
impl From<u64> for ExtendedFeatureEnableRegister
Source§impl PartialEq for ExtendedFeatureEnableRegister
impl PartialEq for ExtendedFeatureEnableRegister
Source§fn eq(&self, other: &ExtendedFeatureEnableRegister) -> bool
fn eq(&self, other: &ExtendedFeatureEnableRegister) -> bool
self
and other
values to be equal, and is used by ==
.