[Top] [All Lists]

Re: 64-bit and N32 kernel interfaces

To: Jun Sun <>
Subject: Re: 64-bit and N32 kernel interfaces
From: Ralf Baechle <>
Date: Wed, 4 Sep 2002 20:40:38 +0200
Cc: "Maciej W. Rozycki" <>,
In-reply-to: <>; from on Wed, Sep 04, 2002 at 10:32:42AM -0700
Original-recipient: rfc822;
References: <> <> <> <>
User-agent: Mutt/
On Wed, Sep 04, 2002 at 10:32:42AM -0700, Jun Sun wrote:

> > The primary problem is the differnet calling sequence for o32 and N64.
> > As it looks we'll be able to use either the o32 function or the native
> > syscall to implement all of the necessary N32 syscalls.
> For 64bit kernel, do we intend to have one syscall table that support o32,
> n32 and n64 altogether?  Or we will have multiple tables for them?

Several approach to solve that problem.  Adding another 1000 entries - which
will cost 8000 bytes of memory that will be mostly zeros.  Having wrappers
for each function that do the appropriate argument and result convertion
is another.  etc.

> > The question is if we want to reserve another 1000 entries in our already
> > huge syscall table for N32 or if we got a better solution ...
> It seems n32 can be naturally implemented through n64 syscalls, although I am 
> sure there are some nasty details to work out.

Unfortunately there are ...

> Where can I find n32/n64 spec? which is no longer online.  Anyway, I don't think there is a
formal published N32 spec.  And this whole thread is about the syscall
interface.  That isn't part of any ABI spec.


<Prev in Thread] Current Thread [Next in Thread>