COBE 0.1 ALPHA
|
00001 #ifndef GDT_H 00002 #define GDT_H 00003 00009 00010 struct gdt_struct { 00012 unsigned short s_size; 00014 unsigned short s_adress_low; 00016 unsigned char s_adress_mid; 00018 unsigned char accs; 00020 unsigned char flags; 00022 unsigned char s_adress_high; 00023 } __attribute((packed)); 00024 00026 struct gdt_ptr_struct { 00028 unsigned short limit_gdt; 00030 unsigned int base_gdt; 00031 } __attribute((packed)); 00032 00033 00034 typedef struct gdt_struct gdt_entry; 00035 typedef struct gdt_ptr_struct gdt_ptr; 00036 00037 void init_gdt(); 00038 void set_gdt(int, unsigned int, unsigned int, unsigned char, unsigned char); 00039 00040 #endif