Struct tartan_arch::x86_64::ExtendedFeatureEnableRegister
source · #[repr(transparent)]pub struct ExtendedFeatureEnableRegister(_);
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 more