From owner-freebsd-threads@FreeBSD.ORG Tue Aug 5 09:58:19 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C42D237B401 for ; Tue, 5 Aug 2003 09:58:19 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E47843FAF for ; Tue, 5 Aug 2003 09:58:19 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h75GwIwO031965 for ; Tue, 5 Aug 2003 09:58:18 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h75GwICn000833 for ; Tue, 5 Aug 2003 09:58:18 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h75GwI6A000832 for threads@FreeBSD.org; Tue, 5 Aug 2003 09:58:18 -0700 (PDT) (envelope-from marcel) Date: Tue, 5 Aug 2003 09:58:17 -0700 From: Marcel Moolenaar To: threads@FreeBSD.org Message-ID: <20030805165817.GA796@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Good news: KSE on ia64 is starting to work X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 16:58:20 -0000 Ok, I have a couple of changes and fixes in my tree that makes KSE on ia64 work. I have a couple of questions before I can commit it: The current implementation defines the thread pointer to be per-KSE, like on i386. This is not how ia64 is supposed to work, so I have some hacks to cpu_set_upcall_kse() to preserve TP and a hack in _ia64_restore_context() to not restore TP (I still save TP in the context for now). Am I right that this is currently the only way libkse can work and that I have to wait until the patches that are floating around get committed? When libkse (then libpthread) does support a per-thread pointer. Does it expect the thread-pointer to set/switched by getcontext() setcontext() or will it assume that the thread-pointer is not itself part of the context? Thanks, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net