22 lines
302 B
C
22 lines
302 B
C
#ifndef __GDT__
|
|
#define __GDT__
|
|
|
|
#include "../Types/types.h"
|
|
|
|
struct gdtPointer{
|
|
u16 size;
|
|
u32 segment;
|
|
} __attribute__ ((packed));
|
|
|
|
struct gdtDescriptor{
|
|
u16 limit1;
|
|
u16 base1;
|
|
u8 base2;
|
|
u8 type : 4;
|
|
u8 param1 : 4;
|
|
u8 limit2 : 4;
|
|
u8 param2 : 4;
|
|
u8 base3;
|
|
} __attribute__ ((packed));
|
|
|
|
#endif
|