gdt.h (347B)
1 #include <stdint.h> 2 3 struct gdt_entry_struct { 4 uint16_t limit; 5 uint16_t base_low; 6 uint8_t base_mid; 7 uint8_t access; 8 uint8_t flags; 9 uint8_t base_high; 10 }__attribute__((packed)); 11 12 struct gdt_desc_ptr { 13 uint16_t limit; 14 uint64_t base; 15 }__attribute__((packed)); 16 17 struct tss { 18 19 }__attribute__((packed)); 20 21 void load_gdt();