struct GlobalDescriptorTable {
pub null_segment: SegmentDescriptor,
pub code_segment: SegmentDescriptor,
pub data_segment: SegmentDescriptor,
pub task_state_segment: SegmentDescriptor,
}
Expand description
Global descriptor table structure specific to Tartan OS.
Fields§
§null_segment: SegmentDescriptor
Dummy descriptor for segment index 0. The processor always treats index 0 as a null value, so this descriptor is ignored.
code_segment: SegmentDescriptor
Main code segment that covers all memory, used by CS.
data_segment: SegmentDescriptor
Main data that covers all memory, used by everything but CS.
task_state_segment: SegmentDescriptor
Sole task state segment required by task register.
Auto Trait Implementations§
impl Freeze for GlobalDescriptorTable
impl RefUnwindSafe for GlobalDescriptorTable
impl Send for GlobalDescriptorTable
impl Sync for GlobalDescriptorTable
impl Unpin for GlobalDescriptorTable
impl UnwindSafe for GlobalDescriptorTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more