From owner-freebsd-amd64@FreeBSD.ORG Wed Oct 5 00:22:51 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85A3716A41F for ; Wed, 5 Oct 2005 00:22:51 +0000 (GMT) (envelope-from peter@wemm.org) Received: from daintree.corp.yahoo.com (daintree.corp.yahoo.com [216.145.52.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5112243D45 for ; Wed, 5 Oct 2005 00:22:51 +0000 (GMT) (envelope-from peter@wemm.org) Received: by daintree.corp.yahoo.com (Postfix, from userid 2154) id 43BA319775; Tue, 4 Oct 2005 17:22:51 -0700 (PDT) From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Tue, 4 Oct 2005 17:22:50 -0700 User-Agent: KMail/1.8.2 References: <200509292212.15953.stephanie@sosdg.org> <00ad01c5c564$fde0d960$0c64a8c0@opteron> In-Reply-To: <00ad01c5c564$fde0d960$0c64a8c0@opteron> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510041722.50741.peter@wemm.org> Cc: Subject: Re: Wine on AMD64 - Any status or success stories? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 00:22:51 -0000 On Thursday 29 September 2005 07:16 pm, K Anderson wrote: > ----- Original Message ----- > From: "Stephanie Daugherty" > To: > Sent: Thursday, September 29, 2005 7:12 PM > Subject: Wine on AMD64 - Any status or success stories? > > >I know this pops up a lot, but is anyone actively trying to fix Wine > > under AMD64? I've googled through the list archives quickly and > > haven't seen much > > change in in over a year... > > > > Any progress? Any pointers on where to start or on what has to be > > done to get > > it working? What can be done to help? > > I'm not sure if it is the 64 bit version of Wine (WINE, or wine) but > on my SuSe 9.2 system it works. I have only putzed around with it. > The only application I am using it for at the moment is winamp. > > I really didn't have to config anything I think it did it for me, I > may have had to tweak a few config files but that's about it. > > So that's my sucess. We don't have the required kernel infrastructure to make this work. There are two problems. 1) Getting the application to execute code in 32 bit mode. 2) managing the 16/32 bit windows segments. #2 is the big problem. We don't have the i386_set_ldt() infrastructure. We might be able to get #1 working by having the process do a far jump to the 32 bit code user segment selector in the GDT, but I haven't messed with this yet. There are so many problems to deal with it isn't funny, eg: delivering signals in 64 bit sigframe format on a stack of a process that is currently executing in a 32 bit %cs segment. The problem set could probably be reduced by running 32 bit binaries, but again, we can't do without the i386_set_ldt() infrastructure. I was reminded about this again today while checking out a different problem... I think its time to do something about this missing feature. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5