From owner-freebsd-ppc@FreeBSD.ORG Thu Aug 3 19:03:47 2006 Return-Path: <owner-freebsd-ppc@FreeBSD.ORG> X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9211316A4DF; Thu, 3 Aug 2006 19:03:47 +0000 (UTC) (envelope-from ssouhlal@FreeBSD.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBB5443D62; Thu, 3 Aug 2006 19:03:46 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.250.2] (80-219-8-155.dclient.hispeed.ch [80.219.8.155]) by elvis.mu.org (Postfix) with ESMTP id A48C21A3C19; Thu, 3 Aug 2006 12:03:45 -0700 (PDT) Message-ID: <44D24886.1090500@FreeBSD.org> Date: Thu, 03 Aug 2006 21:03:34 +0200 From: Suleiman Souhlal <ssouhlal@FreeBSD.org> User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Grehan <grehan@freebsd.org> References: <44D12AC0.90009@sippysoft.com> <0C6ADBC1-E3DF-47D1-AA77-EA9BD14E059F@xcllnt.net> <Pine.GSO.4.64.0608030810150.12639@sea.ntplx.net> <44D22C7A.8030204@sippysoft.com> <Pine.GSO.4.64.0608031307200.13543@sea.ntplx.net> <44D2416A.3070806@freebsd.org> In-Reply-To: <44D2416A.3070806@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Daniel Eischen <deischen@freebsd.org>, "current@freebsd.org" <current@freebsd.org>, Maxim Sobolev <sobomax@sippysoft.com>, freebsd-ppc@freebsd.org Subject: Re: Looks like threading is b0rken on FreeBSD/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC <freebsd-ppc.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ppc> List-Post: <mailto:freebsd-ppc@freebsd.org> List-Help: <mailto:freebsd-ppc-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 03 Aug 2006 19:03:47 -0000 Peter Grehan wrote: >> No, I've no idea. Nothing's changed that I know of. I'm surprised >> that it (powerpc libpthread) works! I know some supporting MD bits >> were added to libpthread but never knew that they actually worked :) > > > It only works in system scope. In theory it could work in process > scope, though there's no simple way to determine if floating point regs > have been used by another thread so you have to unconditionally > context-switch fp state. > > I did a limited amount of testing, mostly with apps and the Sun > 'ping-pong' thread test. I think Suleiman also ran up a bunch of larger > apps with it (e.g. apache-threads). I believe I only tried apache-threads with libthr. In fact, I don't think I've ever even used libpthread on powerpc.. :-( -- Suleiman