Received: from eggs.gnu.org ([2001:4830:134:3::10]:40236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2z0P-0001mU-Pc for qemu-devel@nongnu.org; Sat, 27 Jul 2013 03:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2z0M-0005e2-W2 for qemu-devel@nongnu.org; Sat, 27 Jul 2013 03:33:33 -0400 From: Michael Tokarev Date: Sat, 27 Jul 2013 11:33:22 +0400 Message-Id: <1374910406-15273-8-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1374910406-15273-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1374910406-15273-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL trivial 07/11] linux-user: correct argument number for sys_mremap and sys_splice List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: qemu-trivial@nongnu.org, Michael Tokarev , Petar Jovanovic , qemu-devel@nongnu.org From: Petar Jovanovic sys_mremap missed 5th argument (new_address), which caused examples that remap to a specific address to fail. sys_splice missed 5th and 6th argument which caused different examples to fail. This change has an effect on MIPS target only. Signed-off-by: Petar Jovanovic Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- linux-user/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 5309117..03859bc 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1920,7 +1920,7 @@ static const uint8_t mips_syscall_args[] = { MIPS_SYS(sys_sched_get_priority_min, 1) MIPS_SYS(sys_sched_rr_get_interval, 2) /* 4165 */ MIPS_SYS(sys_nanosleep, 2) - MIPS_SYS(sys_mremap , 4) + MIPS_SYS(sys_mremap , 5) MIPS_SYS(sys_accept , 3) MIPS_SYS(sys_bind , 3) MIPS_SYS(sys_connect , 3) /* 4170 */ @@ -2057,7 +2057,7 @@ static const uint8_t mips_syscall_args[] = { MIPS_SYS(sys_pselect6, 6) MIPS_SYS(sys_ppoll, 5) MIPS_SYS(sys_unshare, 1) - MIPS_SYS(sys_splice, 4) + MIPS_SYS(sys_splice, 6) MIPS_SYS(sys_sync_file_range, 7) /* 4305 */ MIPS_SYS(sys_tee, 4) MIPS_SYS(sys_vmsplice, 4) -- 1.7.10.4