not much
This commit is contained in:
parent
2418ac380c
commit
3333665ab6
|
@ -49,7 +49,7 @@ mycpu(void) {
|
|||
return c;
|
||||
}
|
||||
|
||||
// Return the current struct proc *.
|
||||
// Return the current struct proc *, or zero if none.
|
||||
struct proc*
|
||||
myproc(void) {
|
||||
push_off();
|
||||
|
@ -421,7 +421,7 @@ scheduler(void)
|
|||
|
||||
c->proc = 0;
|
||||
for(;;){
|
||||
// Let devices interrupt when no lock is held.
|
||||
// Avoid deadlock by ensuring that devices can interrupt.
|
||||
intr_on();
|
||||
|
||||
for(p = proc; p < &proc[NPROC]; p++) {
|
||||
|
|
Loading…
Reference in a new issue