StuBS
GDT::SegmentDescriptor Union Reference

Describes the structure of segment descriptors. More...

#include <machine/gdt.h>

Classes

struct  [struct].__unnamed0__
struct  [struct].__unnamed1__
 Fields specific for Code Segment (for debugging purposes). More...
struct  [struct].__unnamed2__
 Fields specific for Data Segment (for debugging purposes). More...

Public Member Functions

constexpr SegmentDescriptor (uint64_t val=0)
 !< Merged value; useful for debugging
constexpr SegmentDescriptor (uintptr_t base, uint32_t limit, bool code, int ring, Size size)
 Constructor for a code/data GDT entry.

Public Attributes

struct  
struct  
struct  
uint64_t value

Detailed Description

Describes the structure of segment descriptors.

A data structure that contains size, position, access rights, and purpose of any segment. Segment descriptors are used in both the GDT, as well as in LDTs.

See also
ISDMv3, 3.4.5; Segment Descriptors
AAPMv2, 4.7 Legacy Segment Descriptors
AAPMv2, 4.8 Long-Mode Segment Descriptors

Constructor & Destructor Documentation

◆ SegmentDescriptor() [1/2]

GDT::SegmentDescriptor::SegmentDescriptor ( uint64_t val = 0)
inlineconstexpr

!< Merged value; useful for debugging

Constructor for a specific value

◆ SegmentDescriptor() [2/2]

GDT::SegmentDescriptor::SegmentDescriptor ( uintptr_t base,
uint32_t limit,
bool code,
int ring,
Size size )
inlineconstexpr

Constructor for a code/data GDT entry.

Parameters
baseBase Address of segment
limitSize of segment
codeCode or data segment
ringPrivilege level
sizeAddress width

Member Data Documentation

◆ @235144354357331311101174347207266266237125201026

◆ @251030100133354226360331371126042111002362234170

◆ @277213316173245037203105114100167150025111362063

◆ value

uint64_t GDT::SegmentDescriptor::value

The documentation for this union was generated from the following file: