diff options
Diffstat (limited to 'kernel/features/proc.c')
-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"); |