diff options
author | Marvin Borner | 2020-06-05 23:15:06 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-05 23:15:06 +0200 |
commit | cca3879a03c2a983310e25bca6a64a979aa9c3ef (patch) | |
tree | f9c18d952232c8248af95f4c335b9eefe707b85d /src/kernel/gdt/gdt.c | |
parent | adddbaa932179669e61ad5abf50341e9cbe0e0e9 (diff) |
Fixed many HUGE bugs...
Diffstat (limited to 'src/kernel/gdt/gdt.c')
-rw-r--r-- | src/kernel/gdt/gdt.c | 5 |
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(); |