Skip to main content

Module gdt

Module gdt 

Source
Expand description

Global Descriptor Table (GDT): owns the kernel segment descriptors and the TSS selector, and loads them into the CPU.

Authors: MarioS271

Re-exportsยง

use super::tss::Tss; ๐Ÿ”’
use crate::kinfo; ๐Ÿ”’
use x86_64::instructions::tables::load_tss; ๐Ÿ”’
use x86_64::registers::segmentation::Segment; ๐Ÿ”’
use x86_64::registers::segmentation::CS; ๐Ÿ”’
use x86_64::registers::segmentation::DS; ๐Ÿ”’
use x86_64::registers::segmentation::ES; ๐Ÿ”’
use x86_64::registers::segmentation::SS; ๐Ÿ”’
use x86_64::structures::gdt::Descriptor; ๐Ÿ”’
use x86_64::structures::gdt::GlobalDescriptorTable; ๐Ÿ”’
use x86_64::structures::gdt::SegmentSelector; ๐Ÿ”’

Structsยง

GdtSetupInfo

Functionsยง

gdt_init
Build the GDT and return it and a struct containing it and all its segment selectors
gdt_loadโš 
Load the GDT and its selectors