sched: copy serial date to userspace on trap
This commit is contained in:
parent
210663fe0f
commit
8ac4b2e260
2 changed files with 5 additions and 2 deletions
|
|
@ -167,8 +167,9 @@ void schedule()
|
|||
break;
|
||||
case PROC_BLOCKED:
|
||||
if (!sem_trywait(&proc->block_sem))
|
||||
proc_unblock(proc->pid);
|
||||
proc->state = PROC_STOPPED;
|
||||
spinlock_release(&proc->lock);
|
||||
break;
|
||||
case PROC_RUNNING:
|
||||
spinlock_release(&proc->lock);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue