From 19333efb9eb634f17bea41d0cec8ee28c595cce8 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 31 May 2009 00:28:45 +0000 Subject: 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()]. --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index e5d6fff..98c5d4c 100644 --- a/exec.c +++ b/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: -- cgit v1.2.3