fix a problem with end. make uartputc() wait until h/w is ready.
This commit is contained in:
parent
b78894f34e
commit
0e131b2263
11 changed files with 32 additions and 23 deletions
2
proc.c
2
proc.c
|
@ -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++){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue