FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
gdt.h File Reference

The Header file for Global Descriptor Table. More...

#include <basics.h>
Include dependency graph for gdt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gdt_entry
 The GDT Table. More...
struct  gdt_ptr
 GDT Pointer. More...

Functions

struct gdt_entry __attribute__ ((packed))
 AHCI command header structure.
void setup_gdt ()
 Set the up GDT for the entire OS.

Variables

int16 limit_low
uint16_t base_low
uint8_t base_middle
uint8_t access
uint8_t granularity
uint8_t base_high
uint16_t limit
uint64_t base
struct gdt_entry gdt [7]
struct gdt_ptr gdtp

Detailed Description

The Header file for Global Descriptor Table.

Author
Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2025-10-03

Definition in file gdt.h.

Function Documentation

◆ __attribute__()

struct gdt_entry __attribute__ ( (packed) )

AHCI command header structure.

AHCI command table structure.

Physical Region Descriptor Table (PRDT) entry.

Represents the command header for a single AHCI port.

AHCI command header structure.

Definition at line 1 of file ahci.h.

Variable Documentation

◆ access

uint8_t access

Definition at line 3 of file gdt.h.

◆ base

uint64_t base

Definition at line 1 of file gdt.h.

◆ base_high

uint8_t base_high

Definition at line 5 of file gdt.h.

◆ base_low

uint16_t base_low

Definition at line 1 of file gdt.h.

◆ base_middle

uint8_t base_middle

Definition at line 2 of file gdt.h.

◆ granularity

uint8_t granularity

Definition at line 4 of file gdt.h.

◆ limit

uint16_t limit

Definition at line 0 of file gdt.h.

◆ limit_low

int16 limit_low

Definition at line 0 of file gdt.h.