提交 cb1ecafb 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Rejigger wq_end in exec.

上级 52e14d15
...@@ -146,7 +146,6 @@ exec(char *path, char **argv) ...@@ -146,7 +146,6 @@ exec(char *path, char **argv)
if(vmap_insert(vmap, vmn, USERTOP-(USTACKPAGES*PGSIZE)) < 0) if(vmap_insert(vmap, vmn, USERTOP-(USTACKPAGES*PGSIZE)) < 0)
goto bad; goto bad;
vmn = 0; vmn = 0;
wq_end();
// Push argument strings, prepare rest of stack in ustack. // Push argument strings, prepare rest of stack in ustack.
sp = USERTOP; sp = USERTOP;
...@@ -174,6 +173,7 @@ exec(char *path, char **argv) ...@@ -174,6 +173,7 @@ exec(char *path, char **argv)
if(*s == '/') if(*s == '/')
last = s+1; last = s+1;
safestrcpy(myproc()->name, last, sizeof(myproc()->name)); safestrcpy(myproc()->name, last, sizeof(myproc()->name));
wq_end();
// Commit to the user image. // Commit to the user image.
oldvmap = myproc()->vmap; oldvmap = myproc()->vmap;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论