Subject: Re: lwp_emuldata
To: Jason Thorpe <>
From: Emmanuel Dreyfus <>
List: tech-kern
Date: 12/11/2003 21:24:02
Jason Thorpe <> wrote:

> Mach uses one thread per LWP.  This is something that will work in our
> current code, assuming all of the other necessary services are 
> emulated.

Most of Mach thread stuff really used by Darwin binaries is already
emulated in COMPAT_MACH (see service Id around 3600 in

I already run a few threaded programs, and they work fine: mach_init and
XDarwin for instance. The absence of a real per-thread kernel port have
not been a problem. It is getting mandatory in order to run gdb: this
one really wants to read each thread context. 

Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.