sys_read: implement different blocking mechanism

This commit is contained in:
Michael Shaw 2024-06-13 19:23:06 -04:00
commit fba82790a9
3 changed files with 8 additions and 1 deletions

View file

@ -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);