1 2 3 4 5 6 7 8
struct idt_entry { uint16_t offset1; uint16_t selector; uint8_t zero; uint8_t type_attr; uint16_t offset2; } __attribute__((packed));