From: Ralf Baechle <ralf@linux-mips.org>
To: Kjeld Borch Egevang <kjelde@mips.com>
Cc: linux-mips mailing list <linux-mips@oss.sgi.com>
Subject: Re: N32 support in 64-bit MIPS Linux
Date: Thu, 15 Aug 2002 18:19:52 +0200 [thread overview]
Message-ID: <20020815181952.B10199@linux-mips.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0208151140060.2195-100000@coplin19.mips.com>; from kjelde@mips.com on Thu, Aug 15, 2002 at 12:06:31PM +0200
On Thu, Aug 15, 2002 at 12:06:31PM +0200, Kjeld Borch Egevang wrote:
> I would like to hear your opinion on this.
>
> Currently we have the N64 interface which is the basic interface to the
> kernel. Then we have the O32 interface which is implemented as a separate
> set of syscalls in unistd.h and proper conversion in the kernel.
>
> Now, how can we support N32? Many syscalls will work if N32 is treated the
> same way as O32. This will of course mean, that O32 must be compiled in in
> order to support N32. But e.g. a syscall like:
>
> int _llseek(unsigned int fd, unsigned long offset_high, unsigned long
> offset_low, loff_t *result, unsigned int whence);
>
> needs special treatment since loff_t is a long long (passed in a single
> register for N32) and there are 6 arguments (all passed in registers for
> N32, passed in registers and on the stack for O32).
>
> Should we simply add 235 new syscall numbers to unistd.h named
> __NR_LinuxN32...?
o32 currently has 240 syscalls. Of these a good number is simply
junk. No syscall(2), oldstat(2), oldfstat(2), no experimental
UNIX Version 7 bs like mpx(2) for new ABIs; away with stupid multiplexor
calls like socketcall(2) and funny intelisms like vm86(2). That's
the first cleanup I'm planning.
For what will be left over, N32 and N64 use the same subroutine calling
interface we'll be able to share most if not all syscalls between the two.
llseek(2) is just one example.
Ralf
next prev parent reply other threads:[~2002-08-15 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-15 10:06 N32 support in 64-bit MIPS Linux Kjeld Borch Egevang
2002-08-15 16:19 ` Ralf Baechle [this message]
2002-08-16 9:00 ` Kjeld Borch Egevang
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=20020815181952.B10199@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=kjelde@mips.com \
--cc=linux-mips@oss.sgi.com \
/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.