From 07467287da0ec9bbdb3d38afd320a959ba8944f4 Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Sun, 7 Feb 2021 02:14:00 +0800 Subject: [PATCH] Fix exit_code in user --- user/src/syscall.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/src/syscall.rs b/user/src/syscall.rs index 0130e127..a1101e1b 100644 --- a/user/src/syscall.rs +++ b/user/src/syscall.rs @@ -69,6 +69,6 @@ pub fn sys_exec(path: &str) -> isize { syscall(SYSCALL_EXEC, [path.as_ptr() as usize, 0, 0]) } -pub fn sys_waitpid(pid: isize, xstatus: *mut i32) -> isize { - syscall(SYSCALL_WAITPID, [pid as usize, xstatus as usize, 0]) +pub fn sys_waitpid(pid: isize, exit_code: *mut i32) -> isize { + syscall(SYSCALL_WAITPID, [pid as usize, exit_code as usize, 0]) } \ No newline at end of file