fix a problem with end. make uartputc() wait until h/w is ready.

This commit is contained in:
Robert Morris 2019-06-04 10:43:45 -04:00
parent b78894f34e
commit 0e131b2263
11 changed files with 32 additions and 23 deletions

2
proc.c
View file

@ -360,7 +360,7 @@ scheduler(void)
for(;;){
// Enable interrupts on this processor.
intr_on();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){