Struct tartan_arch::x86_common::interrupt::APICBaseRegister
source · #[repr(transparent)]pub struct APICBaseRegister(_);
Expand description
IA32_APIC_BASE
: A model-specific register that allows relocating an advanced
programmable interrupt controller (APIC)’s control structure.
See Intel ISA volume 2 §10.4.3–10.4.4.
Implementations§
source§impl APICBaseRegister
impl APICBaseRegister
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Can be cleared to disable the APIC. However, it cannot be re-enabled once disabled with this mechanism.
sourcepub fn x2_interface(&self) -> bool
pub fn x2_interface(&self) -> bool
Enable the APIC’s
sourcepub fn bootstrap_processor(&self) -> bool
pub fn bootstrap_processor(&self) -> bool
Indicates that this core was designated as the bootstrap processor for single-threaded operation on startup.
sourcepub fn set_enabled(&mut self, value: bool)
pub fn set_enabled(&mut self, value: bool)
Can be cleared to disable the APIC. However, it cannot be re-enabled once disabled with this mechanism.
sourcepub fn with_enabled(&mut self, value: bool) -> Self
pub fn with_enabled(&mut self, value: bool) -> Self
Can be cleared to disable the APIC. However, it cannot be re-enabled once disabled with this mechanism.
sourcepub fn set_x2_interface(&mut self, value: bool)
pub fn set_x2_interface(&mut self, value: bool)
Enable the APIC’s
sourcepub fn with_x2_interface(&mut self, value: bool) -> Self
pub fn with_x2_interface(&mut self, value: bool) -> Self
Enable the APIC’s
sourcepub fn set_bootstrap_processor(&mut self, value: bool)
pub fn set_bootstrap_processor(&mut self, value: bool)
Indicates that this core was designated as the bootstrap processor for single-threaded operation on startup.
sourcepub fn with_bootstrap_processor(&mut self, value: bool) -> Self
pub fn with_bootstrap_processor(&mut self, value: bool) -> Self
Indicates that this core was designated as the bootstrap processor for single-threaded operation on startup.
source§impl APICBaseRegister
impl APICBaseRegister
sourcepub const DEFAULT_ADDRESS: usize = 4_276_092_928usize
pub const DEFAULT_ADDRESS: usize = 4_276_092_928usize
The default APIC base address when the processor is reset.
sourcepub fn set_address(&mut self, address: usize)
pub fn set_address(&mut self, address: usize)
Update the base address of the APIC’s registers.
Trait Implementations§
source§impl Bitfield<u64> for APICBaseRegister
impl Bitfield<u64> for APICBaseRegister
source§impl Clone for APICBaseRegister
impl Clone for APICBaseRegister
source§fn clone(&self) -> APICBaseRegister
fn clone(&self) -> APICBaseRegister
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more