diff options
| author | Ada Christine <adachristine18@gmail.com> | 2025-01-27 02:05:07 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2025-01-27 02:05:07 +0000 |
| commit | 0d2ddecc9aeb232746b76b4eebdb1381053a8951 (patch) | |
| tree | 31fe2fc38ead88a0d982b06b3783aae4f094b8ad /kc/core/cpu/cpu.c | |
| parent | 6faeb8d3aed797ddfac66ecc21fc8a717d5e848a (diff) | |
checkpoint. we can fake syscall with the dummy gdt
Diffstat (limited to 'kc/core/cpu/cpu.c')
| -rw-r--r-- | kc/core/cpu/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
