From c2cfebbf6c00eb02cf01febd7d61a6db7fece1ab Mon Sep 17 00:00:00 2001 From: zhangxinyu <840317537@qq.com> Date: Wed, 24 May 2023 09:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=AF=E9=BD=BF=E8=9E=88=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch3-coop/user/src/syscall.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ch3-coop/user/src/syscall.rs b/ch3-coop/user/src/syscall.rs index 0c9f3e1..dc87cde 100644 --- a/ch3-coop/user/src/syscall.rs +++ b/ch3-coop/user/src/syscall.rs @@ -29,7 +29,7 @@ pub fn sys_exit(exit_code: i32) -> isize { syscall(SYSCALL_EXIT, [exit_code as usize, 0, 0]) } -pub fn sys_yield() { - syscall(SYSCALL_YIELD, [0, 0, 0]); -} +// pub fn sys_yield() { +// syscall(SYSCALL_YIELD, [0, 0, 0]); +// }