From cca3879a03c2a983310e25bca6a64a979aa9c3ef Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 5 Jun 2020 23:15:06 +0200 Subject: Fixed many HUGE bugs... --- src/kernel/gdt/gdt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/kernel/gdt/gdt.c') diff --git a/src/kernel/gdt/gdt.c b/src/kernel/gdt/gdt.c index 8014756..f201f19 100644 --- a/src/kernel/gdt/gdt.c +++ b/src/kernel/gdt/gdt.c @@ -18,7 +18,7 @@ struct gdt_ptr { void *base; } __attribute__((packed)); -struct gdt_entry gdt[8]; +struct gdt_entry gdt[6]; struct gdt_ptr gp; struct tss_entry_struct { @@ -95,9 +95,6 @@ void gdt_install() // Write TSS tss_write(5, 0x10, stack_hold); - gdt_set_gate(6, 0, 0xFFFFF, 0x92, 0x0); - gdt_set_gate(7, 0, 0xFFFFF, 0x9A, 0x0); - // Remove old GDT and install the new changes! gdt_flush(); tss_flush(); -- cgit v1.2.3