我正在研究linux内核源代码(旧版本0.11v)。当我检查有关叉系统调用时,有一些用于上下文切换的asm代码,如下所示:
/*
* switch_to(n) should switch tasks to task nr n, first
* checking that n isn't the current task, in which case it does nothing.
* This also clears the TS-flag if the task we switched to has used
* tha math co-processor latest.