FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
gdt.h
Go to the documentation of this file.
1
11#ifndef GDT_H
12#define GDT_H
13#include <basics.h>
14
19struct gdt_entry {
20 int16 limit_low;
21 uint16_t base_low;
22 uint8_t base_middle;
23 uint8_t access;
24 uint8_t granularity;
25 uint8_t base_high;
26} __attribute__((packed));
27
32struct gdt_ptr {
33 uint16_t limit;
34 uint64_t base;
35} __attribute__((packed));
36
37extern struct gdt_entry gdt[7];
38extern struct gdt_ptr gdtp;
39
44void setup_gdt();
45#endif
struct acpi_gas __attribute__
Physical Region Descriptor Table (PRDT) entry.
Definition ahci.h:71
This is a basic header files with FrostWing specific short forms and basically a good for life header...
void setup_gdt()
Set the up GDT for the entire OS.
The GDT Table.
Definition gdt.h:19
GDT Pointer.
Definition gdt.h:32