Expand description

Functionality to manipulate segment registers, build segement descriptors and selectors.

Re-exports

pub use crate::current::segmentation::load_cs;

Structs

Entry for IDT, GDT or LDT. Provides size and location of a segment.
Makes building descriptors easier (hopefully).
Specifies which element to load into a segment from descriptor tables (i.e., is a index to LDT or GDT table with some additional flags).

Enums

Code Segment types for descriptors. See also Intel 3a, Table 3-1 Code- and Data-Segment Types.
Data Segment types for descriptors. See also Intel 3a, Table 3-1 Code- and Data-Segment Types.
System-Segment and Gate-Descriptor Types 32-bit mode. See also Intel 3a, Table 3-2 System Segment and Gate-Descriptor Types.
System-Segment and Gate-Descriptor Types 64-bit mode See also Intel 3a, Table 3-2 System Segment and Gate-Descriptor Types.

Traits

Trait that defines the architecture specific functions for building various system segment descriptors which are available on all 16, 32, and 64 bits.
Trait to define functions that build an architecture specific ldt descriptor. There is no corresponding ldt descriptor type for 16 bit.
Trait to define functions that build architecture specific code and data descriptors.
Trait to implement for building a task-gate (this descriptor is not implemented for 64-bit systems since Hardware task switches are not supported in IA-32e mode.).

Functions

Returns the current value of the code segment register.
Returns the current value of the data segment register.
Returns the current value of the extra segment register.
Returns the current value of the FS segment register.
Returns the current value of the GS segment register.
Reload data segment register.
Reload es segment register.
Reload fs segment register.
Reload gs segment register.
Reload stack segment register.
Returns the current value of the stack segment register.