From c00e76f35e78329c0aa01e90a7766b457dcc4e66 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 3 May 2021 14:25:39 +0200 Subject: Fixed TSS --- kernel/features/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/features') 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"); -- cgit v1.2.3