From 0d2ddecc9aeb232746b76b4eebdb1381053a8951 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 27 Jan 2025 02:05:07 +0000 Subject: checkpoint. we can fake syscall with the dummy gdt --- kc/core/cpu/cpu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kc/core/cpu/cpu.c') diff --git a/kc/core/cpu/cpu.c b/kc/core/cpu/cpu.c index f61ed00..da55d38 100644 --- a/kc/core/cpu/cpu.c +++ b/kc/core/cpu/cpu.c @@ -81,6 +81,7 @@ static void set_gdt(int index, case CODE32_USER_SEG: gdt[index].access = 0xfa; gdt[index].flags_limit16 |= 0xc0; + break; case DATA_SUPER_SEG: gdt[index].access = 0x92; gdt[index].flags_limit16 |= 0xc0; @@ -88,6 +89,7 @@ static void set_gdt(int index, case DATA_USER_SEG: gdt[index].access = 0xf2; gdt[index].flags_limit16 |= 0xc0; + break; case TASK64_SEG: gdt[index].access = 0x89; //TODO: make this cleaner i don't like it -- cgit v1.3.1-1-g115d