Some proc cleanup, moving some of copyproc into allocproc.
Also, an experiment: use "thread-local" storage for c and cp instead of the #define macro for curproc[cpu()].
This commit is contained in:
parent
0c7f483838
commit
19333efb9e
9 changed files with 147 additions and 118 deletions
2
exec.c
2
exec.c
|
|
@ -104,7 +104,7 @@ exec(char *path, char **argv)
|
|||
cp->sz = sz;
|
||||
cp->tf->eip = elf.entry; // main
|
||||
cp->tf->esp = sp;
|
||||
setupsegs(cp);
|
||||
usegment();
|
||||
return 0;
|
||||
|
||||
bad:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue