From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 24 13:21:30 2011 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 7390E106564A; Mon, 24 Oct 2011 13:21:30 +0000 (UTC) (envelope-from llwang@llwang.org) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id C5D658FC0A; Mon, 24 Oct 2011 13:21:29 +0000 (UTC) Received: by yxt33 with SMTP id 33so2500140yxt.13 for ; Mon, 24 Oct 2011 06:21:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.192.133 with SMTP id i5mr9078837yhn.13.1319462489094; Mon, 24 Oct 2011 06:21:29 -0700 (PDT) Sender: llwang@llwang.org Received: by 10.236.47.168 with HTTP; Mon, 24 Oct 2011 06:21:29 -0700 (PDT) In-Reply-To: <4ea55387.DnwwF+hvqjtumYN4%perryh@pluto.rain.com> References: <4ea55387.DnwwF+hvqjtumYN4%perryh@pluto.rain.com> Date: Mon, 24 Oct 2011 08:21:29 -0500 X-Google-Sender-Auth: bP_qN-BrUVz0sSLQHLtNZaB9QZQ Message-ID: From: "Li-Lun \"Leland\" Wang" To: perryh@pluto.rain.com Content-Type: text/plain; charset=UTF-8 Cc: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: 32-bit binaries (e.g. wine) and 64-bit kernel structures 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: Mon, 24 Oct 2011 13:21:30 -0000 On Mon, Oct 24, 2011 at 7:01 AM, wrote: > "Li-Lun \"Leland\" Wang" wrote: > >> ... the kernel or LD should know a 32-bit binary is being run >> and return proper structures, as is done in Mac OS. >> >> ... Do we have plans to fix this kind of problems in general? >> Although wine port on FreeBSD is only supported for ARCH=i386, >> could there be workarounds? > > Does it work if you run the 32-bit app in a 32-bit jail? > If so, it might be a workaround (or, arguably, a solution). I can't test the same app directly in the 32-bit jail because a lot of things (e.g. certain devices in the devfs) are not available in the jail. However, I do believe the 64-bit kernel returns 64-bit structures even in 32-bit jails. -- llwang