Skip to main content

Module state

Module state 

Source
Expand description

x86_64 specific CPU data such as TSS, GDT, IDT and selectors

Authors: MarioS271

Re-exportsยง

use super::tables; ๐Ÿ”’
use super::tables::gdt::GdtSetupInfo; ๐Ÿ”’
use super::tables::gdt::gdt_init; ๐Ÿ”’
use super::tables::gdt::gdt_load; ๐Ÿ”’
use super::tables::idt::idt_init; ๐Ÿ”’
use crate::arch::x86_64::cpu::gs_info::GsInfo; ๐Ÿ”’
use crate::lib::addr::VirtAddr; ๐Ÿ”’
use crate::lib::panic::kernel_panic; ๐Ÿ”’
use crate::lib::panic_codes::PanicCode; ๐Ÿ”’
use crate::lib::sync::unchecked_cell::UncheckedCell; ๐Ÿ”’
use core::sync::atomic::AtomicU16; ๐Ÿ”’
use core::sync::atomic::Ordering; ๐Ÿ”’
use x86_64::structures::gdt::GlobalDescriptorTable; ๐Ÿ”’
use x86_64::structures::idt::InterruptDescriptorTable; ๐Ÿ”’

Structsยง

CpuState
Per-CPU state such as TSS and GDT
GlobalCpuState
Global CPU state such as IDT and user code/data selectors