]> git.proxmox.com Git - qemu.git/commitdiff
mips: sigaltstack args
authorWesley W. Terpstra <terpstra@debian.org>
Tue, 12 Jul 2011 11:32:31 +0000 (14:32 +0300)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 12 Jul 2011 11:32:31 +0000 (14:32 +0300)
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>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c

index 48f044319151de8f614f29665ad830f4eb357521..d695610349b79a8a418096731fc95e71d98595f6 100644 (file)
@@ -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)