[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL trivial 07/11] linux-user: correct argument number
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL trivial 07/11] linux-user: correct argument number for sys_mremap and sys_splice |
Date: |
Sat, 27 Jul 2013 11:33:22 +0400 |
From: Petar Jovanovic <address@hidden>
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 <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
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
- [Qemu-trivial] [PULL trivial 00/11] trivial patches for 2013-07-27, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 01/11] aes: Remove unused code (NDEBUG, u16), Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 03/11] hw/9pfs: Fix potential memory leak and avoid reuse of freed memory, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 04/11] exec: Remove env from list of poisoned names, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 06/11] PPC: dbdma: macio: Fix format specifiers (build regression), Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 07/11] linux-user: correct argument number for sys_mremap and sys_splice,
Michael Tokarev <=
- [Qemu-trivial] [PULL trivial 02/11] timer: make timers_state static, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 05/11] watchdog: Remove break after exit, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 09/11] qemu-options: mention C-a h in the -nographic doc, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 08/11] misc: Fix new typos in comments and strings, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 10/11] misc: Use g_assert_not_reached for code which is expected to be unreachable, Michael Tokarev, 2013/07/27
- [Qemu-trivial] [PULL trivial 11/11] target-mips: Remove assignment to a variable which is never used, Michael Tokarev, 2013/07/27
- Re: [Qemu-trivial] [Qemu-devel] [PULL trivial 00/11] trivial patches for 2013-07-27, Aurelien Jarno, 2013/07/29