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

23 lines
429 B
C
Raw Normal View History

2017-11-01 01:26:22 -04:00
#ifndef TAILIX_KERNEL_INCLUDED_GDT
#define TAILIX_KERNEL_INCLUDED_GDT 1
struct GdtPointer {
2017-11-01 06:08:09 -04:00
unsigned short limit;
unsigned int base;
2017-11-01 01:26:22 -04:00
}
__attribute__((packed));
struct GdtEntry {
2017-11-01 06:08:09 -04:00
unsigned short limit_low;
unsigned short base_low;
unsigned char base_middle;
unsigned char access;
unsigned char granularity;
unsigned char base_high;
2017-11-01 01:26:22 -04:00
}
__attribute__((packed));
void gdt_initialize();
#endif