aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/gdt/gdt.c
diff options
context:
space:
mode:
authorMarvin Borner2020-06-05 23:15:06 +0200
committerMarvin Borner2020-06-05 23:15:06 +0200
commitcca3879a03c2a983310e25bca6a64a979aa9c3ef (patch)
treef9c18d952232c8248af95f4c335b9eefe707b85d /src/kernel/gdt/gdt.c
parentadddbaa932179669e61ad5abf50341e9cbe0e0e9 (diff)
Fixed many HUGE bugs...
Diffstat (limited to 'src/kernel/gdt/gdt.c')
-rw-r--r--src/kernel/gdt/gdt.c5
1 files changed, 1 insertions, 4 deletions
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();