#[repr(align(64))]pub struct Cpu {
global_cpu_state: GlobalCpuState,
bsp_cpu_state: CpuState,
ap_cpu_states: NicheCell<Box<[CpuState]>>,
}Expand description
Per-CPU descriptor tables: one TSS and GDT per CPU, plus the shared IDT.
Fields§
§global_cpu_state: GlobalCpuState§bsp_cpu_state: CpuState§ap_cpu_states: NicheCell<Box<[CpuState]>>Implementations§
Source§impl Cpu
impl Cpu
pub unsafe fn init_ap_cpu_states(&self, value: Box<[CpuState]>)
Sourcepub fn global_cpu_state(&self) -> &GlobalCpuState
pub fn global_cpu_state(&self) -> &GlobalCpuState
Getter for Cpu::global_cpu_state
Sourcepub fn bsp_cpu_state(&self) -> &CpuState
pub fn bsp_cpu_state(&self) -> &CpuState
Getter for Cpu::bsp_cpu_state
Sourcepub unsafe fn ap_cpu_states(&self) -> &Option<Box<[CpuState]>>
pub unsafe fn ap_cpu_states(&self) -> &Option<Box<[CpuState]>>
Getter for Cpu::ap_cpu_states
§Safety
The caller must guarantee that at this method’s entire execution time, no mutable references or pointers to this data exist or will exist