fix(gdt): revert gdt_r bitfield
This commit is contained in:
parent
2f06fe3f8b
commit
5a2f104d9a
5
k/gdt.c
5
k/gdt.c
@ -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");
|
||||
}
|
||||
|
2
k/gdt.h
2
k/gdt.h
@ -36,8 +36,8 @@ struct gdt
|
||||
|
||||
struct gdt_r
|
||||
{
|
||||
uint32_t addr;
|
||||
uint16_t limit;
|
||||
uint32_t addr;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct segment_selector
|
||||
|
Loading…
Reference in New Issue
Block a user