Turnstone Operating System
Loading...
Searching...
No Matches
descriptor_gdt_code Struct Reference

code segment descriptor for gdt More...

#include <descriptor.h>

Public Attributes

uint32_t unused1
 1/0-31 are unused
 
uint8_t unused2: 8
 2/0-7 aka 32-39 are unused
 
uint8_t unused3: 1
 2/8 aka 40 is unused
 
uint8_t readable: 1
 2/9 aka 41 readable bit
 
uint8_t conforming: 1
 2/10 aka 42 conforming allow diffrent levels run code
 
uint8_t always1: 2
 2/11-12 aka 43-44 are always 1
 
uint8_t dpl: 2
 2/13-14 aka 45-46 bits are for privilage levels
 
uint8_t present: 1
 2/15 aka 47 the page or page table is present?
 
uint8_t unused4: 4
 2/16-19 aka 48-51 are unused
 
uint8_t avl: 1
 2/20 aka 52 are avl bits aka unused
 
uint8_t long_mode: 1
 2/21 aka 53 this bit is always 1 for long mode
 
uint8_t default_opsize: 1
 2/22 aka 54 this bit is always 0 for long mode
 
uint8_t unused5: 1
 2/23 aka 55 is unused
 
uint8_t unused6
 2/24-31 aka 56-63 is unused
 

Detailed Description

code segment descriptor for gdt


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