mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Matthew Wilcox <willy@debian.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: What's the point of __KERNEL_SYSCALLS__?
Date: Sun, 21 Sep 2003 09:11:16 +0100	[thread overview]
Message-ID: <1064131876.3424.20.camel@dhcp23.swansea.linux.org.uk> (raw)
In-Reply-To: <20030921045411.GC13172@parcelfarce.linux.theplanet.co.uk>

On Sul, 2003-09-21 at 05:54, Matthew Wilcox wrote:
> On Fri, Sep 19, 2003 at 05:40:44PM +0100, Matthew Wilcox wrote:
> > This doesn't seem like a big list to clean up.  Any objections to
> > getting rid of them and making the calls directly?
> 
> Here's a patch that removes them for i386 and parisc.  Other arches can
> catch up as they see fit.  Comments?  I've compiled the files that aren't
> completely arch-specific (eg sparc or m68k).

> -static inline int execve(char *filename, char * argv [],
> -	char * envp[])
> -{
> -	extern int __execve(char *, char **, char **, struct task_struct *);
> -	return __execve(filename, argv, envp, current);
> -}

execve on some platforms relies on the entry stuff. Take a look at the
use of the passed registers in sys_execve on x86 as an example. Simply 
calling sys_execve won't work. The same is true for sys_clone used to
create threads.



  parent reply	other threads:[~2003-09-21  8:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 16:40 Matthew Wilcox
2003-09-21  4:54 ` Matthew Wilcox
2003-09-21  5:23   ` viro
2003-09-21  8:11   ` Alan Cox [this message]
2003-09-22 17:23 ` Johannes Stezenbach

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=1064131876.3424.20.camel@dhcp23.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=willy@debian.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®