From: davem@davemloft.net (David Miller)
Subject: [ltt-dev] sparc: sys32.S incorrect compat-layer splice() system call
Date: Tue, 18 Aug 2009 20:16:13 -0700 (PDT) [thread overview]
Message-ID: <20090818.201613.15171258.davem@davemloft.net> (raw)
In-Reply-To: <20090819025623.GA11677@Krystal>
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Date: Tue, 18 Aug 2009 22:56:23 -0400
> I think arch/sparc/kernel/sys32.S has an incorrect splice definition:
>
> SIGN2(sys32_splice, sys_splice, %o0, %o1)
>
> The splice() prototype looks like :
>
> long splice(int fd_in, loff_t *off_in, int fd_out,
> loff_t *off_out, size_t len, unsigned int flags);
>
> So I think we should have :
>
> SIGN2(sys32_splice, sys_splice, %o0, %o2)
>
> instead, am I correct ?
Indeed, that's correct, thanks for your fix. I'll apply it.
>
> BTW, I can't figure out why we have %o5 in :
>
> SIGN2(sys32_sync_file_range, compat_sync_file_range, %o0, %o5)
>
> which takes only 4 arguments:
>
> int sync_file_range(int fd, off64_t offset, off64_t nbytes,
> unsigned int flags);
>
> maybe it has something to do with the return value ? Anyway it should
> not hurt if it is unused.
It takes 4 arguments, but they are passed in 6 registers. Each
off64_t is passed in two 32-bit register parts.
next prev parent reply other threads:[~2009-08-19 3:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 2:56 Mathieu Desnoyers
2009-08-19 3:16 ` David Miller [this message]
2009-08-19 3:40 ` Mathieu Desnoyers
2009-08-19 4:21 ` David Miller
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=20090818.201613.15171258.davem@davemloft.net \
--to=davem@davemloft.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox