diff options
author | Marvin Borner | 2021-05-03 14:25:39 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-03 14:25:39 +0200 |
commit | c00e76f35e78329c0aa01e90a7766b457dcc4e66 (patch) | |
tree | 7d15be0a3e5abe06c28493820d1338c2e8888213 /kernel/features | |
parent | 975dc11bbf2edfd7f30f98c17f593058368a30c0 (diff) |
Fixed TSS
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index 3039231..3dd8114 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -54,7 +54,7 @@ HOT FLATTEN void scheduler(struct regs *regs) current = idle_proc; } - tss_set_stack(GDT_SUPER_DATA_OFFSET, PROC(current)->stack.kernel); + tss_set_stack(PROC(current)->stack.kernel); memory_switch_dir(PROC(current)->page_dir); memcpy(regs, &PROC(current)->regs, sizeof(*regs)); @@ -369,7 +369,7 @@ NORETURN void proc_init(void) // We'll shortly jump to usermode. Clear and protect every secret! memory_user_hook(); - tss_set_stack(GDT_SUPER_DATA_OFFSET, init->stack.kernel); + tss_set_stack(init->stack.kernel); memory_switch_dir(init->page_dir); printf("Jumping to userspace!\n"); |