Skip to content

Commit b0932e0

Browse files
petar-jovanovicaurel32
authored andcommitted
linux-user: correct argument number for sys_mremap and sys_splice
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 <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
1 parent d2e46d5 commit b0932e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux-user/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ static const uint8_t mips_syscall_args[] = {
19201920
MIPS_SYS(sys_sched_get_priority_min, 1)
19211921
MIPS_SYS(sys_sched_rr_get_interval, 2) /* 4165 */
19221922
MIPS_SYS(sys_nanosleep, 2)
1923-
MIPS_SYS(sys_mremap , 4)
1923+
MIPS_SYS(sys_mremap , 5)
19241924
MIPS_SYS(sys_accept , 3)
19251925
MIPS_SYS(sys_bind , 3)
19261926
MIPS_SYS(sys_connect , 3) /* 4170 */
@@ -2057,7 +2057,7 @@ static const uint8_t mips_syscall_args[] = {
20572057
MIPS_SYS(sys_pselect6, 6)
20582058
MIPS_SYS(sys_ppoll, 5)
20592059
MIPS_SYS(sys_unshare, 1)
2060-
MIPS_SYS(sys_splice, 4)
2060+
MIPS_SYS(sys_splice, 6)
20612061
MIPS_SYS(sys_sync_file_range, 7) /* 4305 */
20622062
MIPS_SYS(sys_tee, 4)
20632063
MIPS_SYS(sys_vmsplice, 4)

0 commit comments

Comments
 (0)