sys_read: implement different blocking mechanism
This commit is contained in:
parent
832420d8a7
commit
fba82790a9
3 changed files with 8 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ void schedule()
|
|||
spinlock_acquire(&proc->lock);
|
||||
|
||||
switch (proc->state) {
|
||||
case PROC_BLOCKED_SYSCALL:
|
||||
case PROC_STOPPED:
|
||||
proc->state = PROC_RUNNING;
|
||||
spinlock_release(&proc->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue