Subject: Re: LWP call emulation in COMPAT_SVR4
To: None <port-sparc@NetBSD.ORG>
From: Christos Zoulas <christos@deshaw.com>
List: port-sparc
Date: 09/14/1996 05:43:08
In article <9609132345.AA18495@isolar.Tujunga.CA.US> port-sparc@NetBSD.ORG writes:
>I'm running -current as of yesterday.  Just for fun, I tried testing out some
>Solaris binaries under COMPAT_SVR4 (I think we need a compat_svr4(8), guys).
>After figuring out that I needed a zillion Solaris libraries under /emul/svr4,
>I decided to get cute and try out PhotoShop.  It dies thusly:
>
>  1432 AdobePhotoshop3. CALL  #164 (unimplemented lwp_self)
>  1432 AdobePhotoshop3. PSIG  SIGSYS SIG_DFL
>  1432 AdobePhotoshop3. NAMI  "AdobePhotoshop3..core"
>
>Looking at the Solaris <sys/syscall.h>, I see a whole mess of system calls
>which are unimplemented in NetBSD's /usr/src/sys/compat/svr4/svr4_syscall.h.
>#164 is part of a whole mess of unimplemented _lwp_* Solaris calls.
>
>Any chance of getting some of the additional ones emulated?  More specifically
>should PhotoShop be thrown into the "Uses light-weight processes, forget it"
>pile?  Any chance the _lwp_* calls could be emulated as wrappers around NetBSD
>pthreads calls?  Oh wait, I guess there's no SPARC pthreads library yet ...
>crap ...
>
>(While I'm asking, will there ever be a /usr/src/lib/libpthread/arch/sparc
> with machdep.c et al.?)

There is a chance that you'll see lwp emulation soon in the netbsd kernel.
This will not be done via real threads... no promises of course.

christos