Patchwork [4/7] linux-user: Fix MIPS indirect syscall handling

login
register
mail settings
Submitter riku.voipio@linaro.org
Date Sept. 9, 2011, 9:32 a.m.
Message ID <29fb0f25303a76edb100362eaea59b6f74bdb823.1315560307.git.riku.voipio@linaro.org>
Download mbox | patch
Permalink /patch/114030/
State New
Headers show

Comments

riku.voipio@linaro.org - Sept. 9, 2011, 9:32 a.m.
From: An-Cheng Huang <ancheng@ubnt.com>

Change the number of argument for MIPS sys_syscall from 0 to 8. This
allows arguments for indirect syscalls to be processed correctly.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: An-Cheng Huang <ancheng@ubnt.com>
---
 linux-user/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/linux-user/main.c b/linux-user/main.c
index 8910d2c..3df91f3 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1749,7 +1749,7 @@  void cpu_loop(CPUPPCState *env)
 #define MIPS_SYS(name, args) args,
 
 static const uint8_t mips_syscall_args[] = {
-	MIPS_SYS(sys_syscall	, 0)	/* 4000 */
+	MIPS_SYS(sys_syscall	, 8)	/* 4000 */
 	MIPS_SYS(sys_exit	, 1)
 	MIPS_SYS(sys_fork	, 0)
 	MIPS_SYS(sys_read	, 3)