fix(gdt): revert gdt_r bitfield

This commit is contained in:
aliamelo committed 2021-07-14 03:16:49 +02:00
1 parent 2f06fe3f8b
commit 5a2f104d9a
2 files changed
+1 -6

No files matched your search

-5
View File
@@ -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");
}
+1 -1
View File
@@ -36,8 +36,8 @@ struct gdt
struct gdt_r
{
uint32_t addr;
uint16_t limit;
uint32_t addr;
} __attribute__ ((packed));
struct segment_selector
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.