From 215b8c52b33ef5f31935fe6be1abec57b64d8866 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Sun, 7 Apr 2019 18:58:42 +0800 Subject: [PATCH] Fix WAIT syscall number for mipsel Signed-off-by: Harry Chen --- rust/src/syscall.rs | 2 +- ucore/src/libs/unistd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/syscall.rs b/rust/src/syscall.rs index 7647d64..80a82f1 100644 --- a/rust/src/syscall.rs +++ b/rust/src/syscall.rs @@ -347,7 +347,7 @@ enum SyscallId { Clone = 4120, Exec = 4011, Exit = 4001, - Wait = 4007, + Wait = 4114, Kill = 4037, Fsync = 4118, GetCwd = 4203, diff --git a/ucore/src/libs/unistd.h b/ucore/src/libs/unistd.h index 088237e..03d7b22 100644 --- a/ucore/src/libs/unistd.h +++ b/ucore/src/libs/unistd.h @@ -37,7 +37,7 @@ #define MIPS_SYSCALL 6000 #define SYS_exit (MIPS_SYSCALL + 1) #define SYS_fork (MIPS_SYSCALL + 2) -#define SYS_wait (MIPS_SYSCALL + 7) +#define SYS_wait (MIPS_SYSCALL + 114) #define SYS_exec (MIPS_SYSCALL + 11) #define SYS_clone (MIPS_SYSCALL + 120) #define SYS_yield (MIPS_SYSCALL + 162)