Patchwork [1/6] mips: sigaltstack args

login
register
mail settings
Submitter Wesley W. Terpstra
Date July 8, 2011, 12:56 p.m.
Message ID <CAA-O0Xg=Ru6FrxnZ1o14O1NtWoBp2EV_n5--SCrBBO5wcGQheQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/103837/
State New
Headers show

Comments

Wesley W. Terpstra - July 8, 2011, 12:56 p.m.
The syscall sigaltstack takes two parameters, not zero. This patch
should have no impact as only values above 4 influence the runtime
behaviour. Nevertheless, it is wrong.

Signed-off-by: Wesley W. Terpstra <terpstra@debian.org>
---

Patch

diff --git a/linux-user/main.c b/linux-user/main.c
index 289054b..26ebc73 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1875,7 +1875,7 @@  static const uint8_t mips_syscall_args[] = {
 	MIPS_SYS(sys_getcwd	, 2)
 	MIPS_SYS(sys_capget	, 2)
 	MIPS_SYS(sys_capset	, 2)	/* 4205 */
-	MIPS_SYS(sys_sigaltstack	, 0)
+	MIPS_SYS(sys_sigaltstack	, 2)
 	MIPS_SYS(sys_sendfile	, 4)
 	MIPS_SYS(sys_ni_syscall	, 0)
 	MIPS_SYS(sys_ni_syscall	, 0)