提交 3a21ba17 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

inherit cpu_pin across fork

上级 fec7fd72
......@@ -364,6 +364,7 @@ fork(int flags)
np->parent = myproc();
*np->tf = *myproc()->tf;
np->cpu_pin = myproc()->cpu_pin;
// Clear %eax so that fork returns 0 in the child.
np->tf->rax = 0;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论