From 3fe1cfd4518ab8ace87d08796fe2f38d66598a1d Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jul 2021 20:10:40 +0200 Subject: fix some dumb typos --- kernel/gdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/gdt.c b/kernel/gdt.c index 8646dd6..b76e441 100644 --- a/kernel/gdt.c +++ b/kernel/gdt.c @@ -72,11 +72,11 @@ static void gdt_prepare() { GDT[SEG_r3data] = GDT[SEG_r0data]; GDT[SEG_r3data].ring = 3; GDT[SEG_r3code] = GDT[SEG_r0code]; - GDT[SEG_r3data].ring = 3; + GDT[SEG_r3code].ring = 3; // tss memset(&TSS, 0, sizeof(TSS)); - TSS.ss0 = SEG_r0data << SEG_r3data; // kernel data segment + TSS.ss0 = SEG_r0data << 3; // kernel data segment TSS.esp0 = (uint32_t) &stack_top; GDT[SEG_TSS].limit_low = sizeof(TSS); -- cgit v1.2.3