提交 de1329dd 创建 作者: rtm's avatar rtm

longjmp -> swtch in comments

上级 05109382
...@@ -181,9 +181,9 @@ userinit(void) ...@@ -181,9 +181,9 @@ userinit(void)
// Each CPU calls scheduler() after setting itself up. // Each CPU calls scheduler() after setting itself up.
// Scheduler never returns. It loops, doing: // Scheduler never returns. It loops, doing:
// - choose a process to run // - choose a process to run
// - longjmp to start running that process // - swtch to start running that process
// - eventually that process transfers control back // - eventually that process transfers control
// via longjmp back to the scheduler. // via swtch back to the scheduler.
void void
scheduler(void) scheduler(void)
{ {
...@@ -243,7 +243,7 @@ yield(void) ...@@ -243,7 +243,7 @@ yield(void)
} }
// A fork child's very first scheduling by scheduler() // A fork child's very first scheduling by scheduler()
// will longjmp here. "Return" to user space. // will swtch here. "Return" to user space.
void void
forkret(void) forkret(void)
{ {
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论