feat(gdt): pack gdt_entry struct

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
Julien CLEMENT 2021-07-13 18:19:12 +02:00
parent 15c7d24715
commit 2ee5432c9a

@ -5,20 +5,19 @@
struct gdt_entry
{
uint8_t base_3 : 8;
uint8_t base_3 : 8;
uint8_t granularity : 1;
uint8_t db : 1;
uint8_t l : 1;
uint8_t available : 1;
uint8_t limit_2 : 4;
uint8_t present : 1;
uint8_t present : 1;
uint8_t desc_priv : 2;
uint8_t desc_type : 1;
uint8_t seg_type : 4;
uint8_t base_2 : 8;
uint16_t base_1 : 16;
uint16_t limit_1 : 16;
};
} __attribute__ ((packed));
#endif /* !GDT_H */