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
19
struct
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
32
struct
gdt_ptr
{
33
uint16_t limit;
34
uint64_t base;
35
}
__attribute__
((packed));
36
37
extern
struct
gdt_entry
gdt[7];
38
extern
struct
gdt_ptr
gdtp;
39
44
void
setup_gdt
();
45
#endif
__attribute__
struct acpi_gas __attribute__
Physical Region Descriptor Table (PRDT) entry.
Definition
ahci.h:71
basics.h
This is a basic header files with FrostWing specific short forms and basically a good for life header...
setup_gdt
void setup_gdt()
Set the up GDT for the entire OS.
gdt_entry
The GDT Table.
Definition
gdt.h:19
gdt_ptr
GDT Pointer.
Definition
gdt.h:32
source
includes
gdt.h
Generated by
1.16.1