tb Don't schedrelease() when reading in-pipe
This commit is contained in:
@ -11,7 +11,7 @@ int32_t SYSCALL0(sys_schedrelease) {
|
|||||||
Proc *proc = PROCS.current;
|
Proc *proc = PROCS.current;
|
||||||
spinlock_release(&PROCS.spinlock);
|
spinlock_release(&PROCS.spinlock);
|
||||||
|
|
||||||
/* proc_sched((void *)frame); */
|
proc_sched((void *)frame);
|
||||||
|
|
||||||
return E_OK;
|
return E_OK;
|
||||||
}
|
}
|
||||||
|
@ -134,8 +134,6 @@ void do_mode_interactive(void) {
|
|||||||
linebuf[cursor++] = b;
|
linebuf[cursor++] = b;
|
||||||
uprintf("%c", b);
|
uprintf("%c", b);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
schedrelease();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user