From: Aurelien Jarno <aurelien@aurel32.net>
To: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Cc: qemu-trivial@nongnu.org, riku.voipio@linaro.org,
qemu-devel@nongnu.org, petar.jovanovic@imgtec.com
Subject: Re: [Qemu-trivial] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice
Date: Mon, 29 Jul 2013 00:38:46 +0200 [thread overview]
Message-ID: <20130728223846.GA15063@ohm.aurel32.net> (raw)
In-Reply-To: <1374598810-78021-1-git-send-email-petar.jovanovic@rt-rk.com>
On Tue, Jul 23, 2013 at 07:00:10PM +0200, Petar Jovanovic wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> 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 <petar.jovanovic@imgtec.com>
> ---
> 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 99c3b3f..1c20229 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -1957,7 +1957,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 */
> @@ -2094,7 +2094,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)
Thanks, applied.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
WARNING: multiple messages have this Message-ID (diff)
From: Aurelien Jarno <aurelien@aurel32.net>
To: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Cc: qemu-trivial@nongnu.org, riku.voipio@linaro.org,
qemu-devel@nongnu.org, petar.jovanovic@imgtec.com
Subject: Re: [Qemu-devel] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice
Date: Mon, 29 Jul 2013 00:38:46 +0200 [thread overview]
Message-ID: <20130728223846.GA15063@ohm.aurel32.net> (raw)
In-Reply-To: <1374598810-78021-1-git-send-email-petar.jovanovic@rt-rk.com>
On Tue, Jul 23, 2013 at 07:00:10PM +0200, Petar Jovanovic wrote:
> From: Petar Jovanovic <petar.jovanovic@imgtec.com>
>
> 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 <petar.jovanovic@imgtec.com>
> ---
> 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 99c3b3f..1c20229 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -1957,7 +1957,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 */
> @@ -2094,7 +2094,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)
Thanks, applied.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
next prev parent reply other threads:[~2013-07-28 22:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 17:00 [Qemu-trivial] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice Petar Jovanovic
2013-07-23 17:00 ` [Qemu-devel] " Petar Jovanovic
2013-07-23 17:18 ` [Qemu-trivial] " Michael Tokarev
2013-07-23 17:18 ` [Qemu-devel] " Michael Tokarev
2013-07-23 17:33 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2013-07-23 17:33 ` [Qemu-devel] [Qemu-trivial] " Peter Maydell
2013-07-24 16:22 ` [Qemu-trivial] [Qemu-devel] " Petar Jovanovic
2013-07-24 16:22 ` [Qemu-devel] [Qemu-trivial] " Petar Jovanovic
2013-07-25 6:23 ` [Qemu-trivial] [Qemu-devel] " Michael Tokarev
2013-07-25 6:23 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-07-28 22:38 ` Aurelien Jarno [this message]
2013-07-28 22:38 ` [Qemu-devel] " Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130728223846.GA15063@ohm.aurel32.net \
--to=aurelien@aurel32.net \
--cc=petar.jovanovic@imgtec.com \
--cc=petar.jovanovic@rt-rk.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=riku.voipio@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.