Subject: Re: Mapping 2 compat linux32 syscalls on a single native one
To: Christos Zoulas <christos@zoulas.com>
From: Nicolas Joly <njoly@pasteur.fr>
List: tech-kern
Date: 01/30/2007 13:34:11
On Mon, Jan 29, 2007 at 05:04:22PM -0500, Christos Zoulas wrote:
> On Jan 29, 10:27pm, xdivac02@stud.fit.vutbr.cz (Divacky Roman) wrote:
> -- Subject: Re: Mapping 2 compat linux32 syscalls on a single native one
> 
> | > 64 bits compat linux use NPTL, but compat linux32 do not. This leads
> | > to problems for 32 bits linux threaded programs that i'm trying to
> | > debug and fix.
> | 
> | we had this problem in fbsd too. we solved it by introducing "linux_use26"
> | function that tells wheter 2.6 emulation is present or not. this is determined
> | by examining linux_release variable (which is a string representing what
> | version of linux you are trying to emulate). I guess similar solution
> | should work for you too..
> | 
> | roman
> 
> You are absolutely right. We have not set our 32 bit linux to pretend to
> be 2.6 because we have not implemented the TLS stuff IIRC that NPTL needs
> (mmm acronyms). Ideally we would use NPTL in both cases...

Agreed.

Do we want to have that NPTL compat linux implies NPTL compat linux32
(as compat linux32 depends on compat linux64) ? Or do we allow each
other use separate mecanism ?

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.