From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 9 08:53:03 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 816F116A41B for ; Tue, 9 Oct 2007 08:53:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 35D9A13C455 for ; Tue, 9 Oct 2007 08:53:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4DD2F668E4B; Tue, 9 Oct 2007 10:53:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a7d+FjGZ1kGC; Tue, 9 Oct 2007 10:52:57 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 08CBF668E43; Tue, 9 Oct 2007 10:52:57 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l998ququ014158; Tue, 9 Oct 2007 10:52:56 +0200 (CEST) (envelope-from rdivacky) Date: Tue, 9 Oct 2007 10:52:56 +0200 From: Roman Divacky To: Mihai Don??u Message-ID: <20071009085256.GA14059@freebsd.org> References: <200710082135.58099.mihai.dontu@gmail.com> <200710090100.58577.mihai.dontu@gmail.com> <200710081841.35968.jkim@FreeBSD.org> <200710090348.52036.mihai.dontu@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710090348.52036.mihai.dontu@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, freebsd-questions@freebsd.org, Jung-uk Kim Subject: Re: amd64_set_gsbase() X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2007 08:53:03 -0000 On Tue, Oct 09, 2007 at 03:48:51AM +0300, Mihai Don??u wrote: > On Tuesday 09 October 2007, Jung-uk Kim wrote: > > In long mode, we don't really care about segment registers. While > > implementing TLS for Linuxulator, I had to do the following hack, for > > example: > > > > http://docs.freebsd.org/cgi/mid.cgi?200703300006.l2U06LA1075891 > > > > Under Linux and Windows, they do preserve segment registers vs. base > > addresses mapping for backward compatibility, AFAIK with some > > performance penalty. > > Ah! But you are doing your magic _in the kernel_. I don't have this luxury :) > I have to do everything in user space (as a normal user) on an out-of-the-box > FreeBSD (-stable). just to note things... actually you have the luxury. we have made special hacks to let wine works well (thr_kill2) I see no reason why special support for wine64 in kernel would be left out. just my 2 cents roman