| plan 9 kernel history: overview | file list | diff list |
1992/0609/port/proc.c (diff list | history)
| 1992/0604/sys/src/9/port/proc.c:730,735 – 1992/0609/sys/src/9/port/proc.c:730,739 (short | long | prev | next) | ||
|
Document procctl called splhi, add spllo before pexit, add splhi after sched. (BUG FIXes?)
rsc Mon Mar 20 17:14:26 2006 | ||
| 1990/0227 | flushmmu(); | |
| 1991/0705 | } | |
| 1992/0609 | /* * called splhi() by notify(). See comment in notify for the * reasoning. */ | |
| 1991/0705 | void procctl(Proc *p) { | |
| 1992/0604/sys/src/9/port/proc.c:737,742 – 1992/0609/sys/src/9/port/proc.c:741,747 | ||
| 1991/1108 | ||
| 1991/0705 | switch(p->procctl) { case Proc_exitme: | |
| 1992/0609 | spllo(); /* pexit has locks in it */ | |
| 1991/0705 | pexit("Killed", 1); | |
| 1991/1110 | case Proc_traceme: if(u->nnote == 0) | |
| 1992/0604/sys/src/9/port/proc.c:754,760 – 1992/0609/sys/src/9/port/proc.c:759,766 | ||
| 1991/1110 | } | |
| 1991/1216 | qunlock(&p->debug); | |
| 1991/0705 | p->state = Stopped; | |
| 1992/0609 | sched(); /* sched returns spllo() */ splhi(); | |
| 1991/1108 | p->psstate = state; | |
| 1991/0705 | return; } | |