Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 1998 11:07:00 +1030 (CST)
From:      Mark Newton <newton@atdot.dotat.org>
To:        paipai@tin.it (Paolo Di Francesco)
Cc:        freebsd-sparc@FreeBSD.ORG
Subject:   Re: Solaris Emulation
Message-ID:  <199811090037.LAA02804@atdot.dotat.org>
In-Reply-To: <19981109001856.JWEE16980.fep02-svc@winworkstation> from "Paolo Di Francesco" at Nov 9, 98 01:20:15 am

next in thread | previous in thread | raw e-mail | index | archive | help
Paolo Di Francesco wrote:

 > > Paolo Di Francesco wrote:
 > > 
 > >  > If someone will port FreeBSD on Sparc, teorically could be more 
 > >  > easier to run Solaris apps without solaris. Right?
 > > We're working on Solaris/x86 at the moment, and the vast majority of
 > > that should work on Solaris/sparc if/when a port happens.  A good
 > > deal of Solaris 2.5.1 stuff works at the moment;  I've just recently
 > > returned home from business travel so I can continue working out
 > > why 2.6 libraries/linker fail.
 > 
 > No, No, No, No, Please wait! Let me understand! 8)
 > You said "We're working on Solaris/x86 at the moment,...etc" maybe
 > you wanted to say We're working on FreeBSD/x86 at the moment,...".Right? 
 > Working on Solaris apps running on FreeBSD/x86. Right?

Let me clarify:  We're currently doing work to permit Solaris/x86 (and,
indeed, any other SysV/x86 apps) apps to run without Solaris on the
FreeBSD platform.  The way the code has been written means that
additional (non-intel) ports can make use of the emulation code after
re-writing two machine-dependent .c files, a machine-dependent .s file
and a .h file.

I hope it's that simple, anyway -- I suppose we'll see when non-Intel
FreeBSD platforms try to use SysVR4 emulation code :-)

Theoretically this means SPARC FreeBSD will be able to run SPARC Solaris
apps;  In the future, perhaps Merced FreeBSD will be able to run Merced
Solaris, HP-UX, SCO and IRIX apps.  Theoretically :-)

The code is split into three major parts:  A STREAMS pseudo-device 
driver (machine-independent), a collection of 20-or-so .c and .h files
in /sys/svr4 and the files I mentioned above in /sys/i386/svr4.  It
currently builds as an LKM.

Presumably you'll end up with /sys/sparc/svr4 with four rewritten files
in it if you want to run Solaris apps under FreeBSD/sparc.

Most of this has been "borrowed" from Christos Zoulas' stirling work
in NetBSD.  Volunteers to assist with backporting (so that we can use
the same source for both OSs) will be welcommed, as will volunteers to
help with some of the lower-level details (such as why Solaris 2.6
ld.so.1 makes executables dump core almost immediately after starting
whereas 2.5.1 ld.so.1 works fine).  See the web page below for the
current to-do list.

It's alpha-quality code too, and quite ugly with #ifdef's at present :-(

 > > See http://slash.dotat.org/~newton/freebsd-sparc for further info.
 > > Additional developers welcome, of course :-)
 > 
 > Sorry, my browser said "File Not found -The requested URL 
 > /~newton/freebsd-sparc was not found on this server."
 > Why? 8(

Sorry!  Thinkographical error:  I meant to say 
http://slash.dotat.org/~newton/freebsd-svr4.  My apologies.

     - mark

--------------------------------------------------------------------
I tried an internal modem,                    newton@atdot.dotat.org
     but it hurt when I walked.                          Mark Newton
----- Voice: +61-4-1958-3414 ------------- Fax: +61-8-83034403 -----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811090037.LAA02804>