cos2000v2/include/gdt.h

20 lines
277 B
C
Raw Normal View History

2018-08-31 02:48:03 +02:00
#include <types.h>
2018-08-28 15:22:43 +02:00
2018-08-31 02:48:03 +02:00
typedef struct gdtdes {
2018-08-28 15:22:43 +02:00
u16 lim0_15;
u16 base0_15;
u8 base16_23;
u8 acces;
u8 lim16_19 : 4;
u8 flags : 4;
u8 base24_31;
2018-08-31 02:48:03 +02:00
} gdtdes __attribute__ ((packed));
2018-08-28 15:22:43 +02:00
struct gdtr {
u16 limite;
u32 base;
} __attribute__ ((packed));