1
为什么函数__switch_to
声明为通过寄存器传递参数(而不是按照约定通过堆栈)?为什么要通过寄存器将参数传递给`__switch_to`函数?
extern void FASTCALL(__switch_to(struct task_struct *prev, struct task_struct *next));
当我们从它返回到ret_from_fork
并没有标注1
这可能是相关的情况?怎么样?
源代码: https://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/include/asm-i386/system.h
(是的,我知道这由我不知道是什么原因的旧)