All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: sparclinux@vger.kernel.org
Subject: Re: sparc_pipe(2)
Date: Tue, 20 Mar 2018 23:02:12 +0000	[thread overview]
Message-ID: <20180320230212.GB30522@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20180319.211125.314781796727440151.davem@davemloft.net>

On Tue, Mar 20, 2018 at 02:22:48PM -0400, David Miller wrote:

> > Anyway, I've put together some cleanups ({COMPAT_,}SYSCALL_DEFINE
> > conversions, getting rid of SIGN... wrappers) in
> > git.kernel.org:/pub/scm/linux/kernel/git/viro/vfs.git misc.sparc
> > Do you see any obviour problems with the stuff in there?  It's not
> > urgent - the real fun with compat wrappers will be on mips and s390,
> > anyway; sparc is fairly benign in that respect...
> 
> Nothing in there seems objectionable to me.

More oddities: in commit b340b81a6554facb1b2fbe68691e254d53315d20
Author: David S. Miller <davem@nuts.ninka.net>
Date:   Sun Nov 3 09:24:46 2002 -0800

    [SPARC]: Add sys_remap_file_pages syscalls.

we have
int sparc_remap_file_pages(unsigned long start, unsigned long size,
                          unsigned long prot, unsigned long pgoff,
                          unsigned long flags)
{
       /* This works on an existing mmap so we don't need to validate
        * the range as that was done at the original mmap call.
        */
       return sys_remap_file_pages(start, size, prot,
                                   (pgoff >> (PAGE_SHIFT - 12)), flags);
}

put into native 32bit syscall table and plain sys_remap_file_pages() into
64bit ones - both native and compat.  AFAICS, that would have
remap_file_pages() in 32bit binary operate in units of 4Kb on 32bit
host and PAGE_SIZE - on 64bit one.

Confused...

Other interesting differences:
	* no getpeername() or getsockname() in compat table; AFAICS,
for both the native syscall should work...
	* #254 is ni_syscall() on native an nis_syscall() on compat,
#267 is the other way round.  Huh?  What are the rules for ni vs. nis,
anyway?  I understand that the former is quiet and the latter reports
attempts to issue the syscall in question, but how do we choose which
one to use for given unimplemented syscall?

  parent reply	other threads:[~2018-03-20 23:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20  1:11 sparc_pipe(2) David Miller
2018-03-20  3:42 ` sparc_pipe(2) Al Viro
2018-03-20 14:13 ` sparc_pipe(2) David Miller
2018-03-20 17:02 ` sparc_pipe(2) Al Viro
2018-03-20 18:22 ` sparc_pipe(2) David Miller
2018-03-20 23:02 ` Al Viro [this message]
2018-03-22 17:07 ` sparc_pipe(2) 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=20180320230212.GB30522@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=sparclinux@vger.kernel.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.