Subject: Re: Mapping 2 compat linux32 syscalls on a single native one
To: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 01/29/2007 17:04:22
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...

christos