linux-mips
[Top] [All Lists]

Re: 64-bit and N32 kernel interfaces

To: linux-mips@linux-mips.org
Subject: Re: 64-bit and N32 kernel interfaces
From: Daniel Jacobowitz <dan@debian.org>
Date: Thu, 5 Sep 2002 09:41:31 -0400
In-reply-to: <Pine.GSO.3.96.1020905111911.2423D-100000@delta.ds2.pg.gda.pl>
Mail-followup-to: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3D76FC6B.C9AA72F3@mips.com> <Pine.GSO.3.96.1020905111911.2423D-100000@delta.ds2.pg.gda.pl>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.1i
On Thu, Sep 05, 2002 at 11:23:33AM +0200, Maciej W. Rozycki wrote:
> On Thu, 5 Sep 2002, Carsten Langgaard wrote:
> 
> > >  The (n)64 versions seem suitable and the o32 ones do not as n32 only
> > > crops addresses to 32-bit -- data may still be 64-bit (e.g. file position
> > > pointers).
> > 
> > Please notice, that a 'long' is 32-bit for n32, so we need to do the same
> > conversion for a lot of syscalls, as we already do for o32.
> 
>  Any reference?  AFAIK, long is 64-bit for n32 and only void * is 32-bit. 
> It doesn't make sense otherwise. 

Nope, it looks like long is 32-bit according to GCC.  It means that
64-bit quantities (long long, structures) can go in integer registers.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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