diff options
author | dzwdz | 2021-07-09 20:10:40 +0200 |
---|---|---|
committer | dzwdz | 2021-07-09 20:10:40 +0200 |
commit | 3fe1cfd4518ab8ace87d08796fe2f38d66598a1d (patch) | |
tree | 309bbbe6c7a3af3d7e846ffb08b61b12f83dab82 /kernel/gdt.c | |
parent | de65e2a8c4bc73f0d6b843a0edc9fefe7bc4b025 (diff) |
fix some dumb typos
Diffstat (limited to 'kernel/gdt.c')
-rw-r--r-- | kernel/gdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |