diff options
author | rsc <rsc> | 2007-08-28 12:52:14 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 12:52:14 +0000 |
commit | fc210467548dabbbf196227ec279b3c3301c9951 (patch) | |
tree | ada3c5b88852fda92c6affec2ec240d999cd8634 | |
parent | 818fc0125e7d73fdf4f1a94f178254e5d05c9831 (diff) | |
download | xv6-labs-fc210467548dabbbf196227ec279b3c3301c9951.tar.gz xv6-labs-fc210467548dabbbf196227ec279b3c3301c9951.tar.bz2 xv6-labs-fc210467548dabbbf196227ec279b3c3301c9951.zip |
nit
-rw-r--r-- | proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -202,16 +202,14 @@ scheduler(void) // Switch to chosen process. It is the process's job // to release proc_table_lock and then reacquire it // before jumping back to us. - - setupsegs(p); cp = p; + setupsegs(p); p->state = RUNNING; swtch(&cpus[cpu()].context, &p->context); // Process is done running for now. // It should have changed its p->state before coming back. cp = 0; - setupsegs(0); } |