fix(gdt): revert gdt_r bitfield

This commit is contained in:
Malo Lecomte 2021-07-14 03:16:49 +02:00
parent 2f06fe3f8b
commit 5a2f104d9a
2 changed files with 1 additions and 6 deletions

@ -110,18 +110,13 @@ static void load_cs()
static void reload_segment_selectors()
{
printf("Before load_ds\r\n");
load_ds();
load_cs();
}
void init_gdt()
{
printf("Before create_gdt\r\n");
create_gdt();
printf("Before load_gdt\r\n");
load_gdt();
printf("Before reload_segment_selectors\r\n");
reload_segment_selectors();
printf("All good\r\n");
}

@ -36,8 +36,8 @@ struct gdt
struct gdt_r
{
uint32_t addr;
uint16_t limit;
uint32_t addr;
} __attribute__ ((packed));
struct segment_selector