Add USED to states (thanks Harry Porter)
This commit is contained in:
parent
b1fd09335a
commit
48d1a7ffa5
|
@ -53,6 +53,7 @@ procinit(void)
|
||||||
initlock(&wait_lock, "wait_lock");
|
initlock(&wait_lock, "wait_lock");
|
||||||
for(p = proc; p < &proc[NPROC]; p++) {
|
for(p = proc; p < &proc[NPROC]; p++) {
|
||||||
initlock(&p->lock, "proc");
|
initlock(&p->lock, "proc");
|
||||||
|
p->state = UNUSED;
|
||||||
p->kstack = KSTACK((int) (p - proc));
|
p->kstack = KSTACK((int) (p - proc));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -639,6 +640,7 @@ procdump(void)
|
||||||
{
|
{
|
||||||
static char *states[] = {
|
static char *states[] = {
|
||||||
[UNUSED] "unused",
|
[UNUSED] "unused",
|
||||||
|
[USED] "used",
|
||||||
[SLEEPING] "sleep ",
|
[SLEEPING] "sleep ",
|
||||||
[RUNNABLE] "runble",
|
[RUNNABLE] "runble",
|
||||||
[RUNNING] "run ",
|
[RUNNING] "run ",
|
||||||
|
|
Loading…
Reference in a new issue