1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/arch/gdt.h
2017-11-01 10:25:30 +00:00

22 lines
429 B
C

#ifndef TAILIX_KERNEL_INCLUDED_GDT
#define TAILIX_KERNEL_INCLUDED_GDT 1
struct GdtPointer {
unsigned short limit;
unsigned int base;
}
__attribute__((packed));
struct GdtEntry {
unsigned short limit_low;
unsigned short base_low;
unsigned char base_middle;
unsigned char access;
unsigned char granularity;
unsigned char base_high;
}
__attribute__((packed));
void gdt_initialize();
#endif