diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/proc.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/kernel/proc.c b/kernel/proc.c index 809d112..58a8a0b 100644 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -450,7 +450,8 @@ scheduler(void)    c->proc = 0;    for(;;){      // The most recent process to run may have had interrupts -    // turned off; turn them on to avoid deadlock. +    // turned off; enable them to avoid a deadlock if all +    // processes are waiting.      intr_on();      for(p = proc; p < &proc[NPROC]; p++) { | 
