From owner-freebsd-arch@FreeBSD.ORG Tue Apr 3 18:16:02 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BF7116A404; Tue, 3 Apr 2007 18:16:02 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id E2C2E13C484; Tue, 3 Apr 2007 18:16:01 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 03 Apr 2007 10:43:20 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.13.1/8.12.11) with ESMTP id l33HlIiA064055; Tue, 3 Apr 2007 10:47:18 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.13.1/8.13.1/Submit) id l33HlIpr064054; Tue, 3 Apr 2007 10:47:18 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200704031747.l33HlIpr064054@ambrisko.com> In-Reply-To: To: Daniel Eischen Date: Tue, 3 Apr 2007 10:47:18 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-hackers@freebsd.org, Andriy Gapon , freebsd-arch@freebsd.org Subject: Re: 32/64bit KSE issues? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 18:16:02 -0000 Daniel Eischen writes: | On Sat, 31 Mar 2007, John Baldwin wrote: | > On Saturday 31 March 2007 03:16, Andriy Gapon wrote: | >> on 31/03/2007 05:23 Daniel Eischen said the following: | >>> On Fri, 30 Mar 2007, David E. Cross wrote: | >>> | >>>> I recently ran into a problem where the 32bit JVM won't run on a 64bit host. | >>>> I, and at least one other person in -java thinks it has to do with 32 bit KSE | >>>> on a 64bit kernel (I have a vague memory on this somewheres WAY back). Is | >>>> this still the issue? Could someone point me in the general direction of the | >>>> specifics of the problem (if they exist, if not, I may try to create a | >>>> simpler test case then java)? | >>>> | >>>> I tried a few searches, but nothing matching what I remembered came up. | >>> | >>> No, you can't run 32-bit libpthread on 64-bit kernel. There | >>> are no compatiblity hooks in the kernel to handle 32-bit kse | >>> interfaces. It is really too messy to provide it. | | [ ... ] | | > I plan on making sure full 32-bit compat exists for both libthr and | > libpthread and backporting it to 6.x for work. Very few things are | > too hard to wrap with a 32-bit shim. | | Not according to peter@ ;-) But if you can do it, that'd be | great. I MFC'ed David Xu's libthr to 6.X at work and it's working. libkse will be a lot harder IMHO. David's stuff in -current just works. I routinely run 32bit thread stuff on 64bit hosts using the libmap32.conf trick to switch from kse to libthr. Thanks to David for making it work in -current. Doug A.