From: acevest Date: Fri, 29 Oct 2021 02:00:43 +0000 (+0800) Subject: tss.esp0 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=666d312d1ead2338fa1db6f37a9fcebb38a47e22;p=kernel.git tss.esp0 --- diff --git a/kernel/sched.c b/kernel/sched.c index 64c7227..5d03605 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -57,10 +57,11 @@ void init_root_tsk() //for(i=0; iesp0; -} void switch_to() { LOAD_CR3(current->cr3); - set_esp0(current); + tss.esp0 = current->esp0; } void context_switch(task_union * prev, task_union * next)