Subject: Re: Linux Emulation in hpcmips
To: Warner Losh <imp@village.org>
From: Todd Vierling <tv@wasabisystems.com>
List: port-hpcmips
Date: 08/23/2000 16:17:15
On Wed, 23 Aug 2000, Warner Losh wrote:

: : The PECOFF support in the NetBSD kernel sources is pretty much finished;
: : there's not a whole lot needed there, and using it on mips should be
: : relatively painless.  The vast majority of the code involves emulation of
: : the DLL infrastructure, for which the PEACE project
: : (http://chiharu.haun.org/peace/) is doing Win32/x86 libraries.  *That* is
: : what would need serious coding effort.
: 
: I was just going to use the native DLLs, but that's likely homelessly
: naive :-)

There's a handful of `core' DLLs that you cannot pull from WinCE or
WinNT/mips; these are the ones that do the low-level system handling, such
as GDI (windowing), winsock, winmm (multimedia), and last but certainly not
least, kernel.

The approach used by COMPAT_PECOFF is to emulate the core set of DLLS by
using wrappers around the NetBSD C library, with NetBSD native system calls,
and then stacking the rest of the DLLs (which can come from Windoze) on top
of those.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.