提交 9c65b32d 创建 作者: Robert Morris's avatar Robert Morris

nothing much

上级 c779cc2b
# Initial process execs /init.
# This code runs in user space.
#include "syscall.h"
#include "traps.h"
......
......@@ -283,7 +283,7 @@ scheduler(void)
proc = p;
switchuvm(p);
p->state = RUNNING;
swtch(&cpu->scheduler, proc->context);
swtch(&cpu->scheduler, p->context);
switchkvm();
// Process is done running for now.
......
......@@ -171,7 +171,7 @@ switchuvm(struct proc *p)
ltr(SEG_TSS << 3);
if(p->pgdir == 0)
panic("switchuvm: no pgdir");
lcr3(v2p(p->pgdir)); // switch to new address space
lcr3(v2p(p->pgdir)); // switch to process's address space
popcli();
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论