feat(sched): add sched_yield (#766)

* 实现sched_yield系统调用
This commit is contained in:
zwb0x00
2024-04-26 15:33:29 +08:00
committed by GitHub
parent 471d65cf15
commit 173c4567cf
3 changed files with 40 additions and 0 deletions

View File

@ -1007,6 +1007,8 @@ impl Syscall {
Self::fchmodat(dirfd, pathname, mode)
}
SYS_SCHED_YIELD => Self::do_sched_yield(),
SYS_SCHED_GETAFFINITY => {
let pid = args[0] as i32;
let size = args[1];