From owner-freebsd-threads@FreeBSD.ORG Thu Jun 19 20:57:09 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 A24EB37B401; Thu, 19 Jun 2003 20:57:09 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCE1043F93; Thu, 19 Jun 2003 20:57:08 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h5K3v4Xh020487; Thu, 19 Jun 2003 23:57:04 -0400 (EDT) Date: Thu, 19 Jun 2003 23:57:04 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Marcel Moolenaar In-Reply-To: <20030620034647.GB2260@dhcp01.pn.xcllnt.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: davidxu@freebsd.org cc: Julian Elischer Subject: Re: Implementing TLS: step 1 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 03:57:09 -0000 On Thu, 19 Jun 2003, Marcel Moolenaar wrote: > On Thu, Jun 19, 2003 at 11:39:42PM -0400, Daniel Eischen wrote: > > > > > Q2: Given that libthr has been ported to ia64, what needs to be done > > > to port libkse to ia64 (roughtly)? > > > > libpthread/arch/i386/include/ksd.h: > > libpthread/arch/i386/include/atomic_ops.h > > libpthread/arch/i386/include/pthread_md.h > > libpthread/arch/i386/i386: > > No kernel code? Hmmm, looks like something that's worth giving a I'm not too sure about the kernel code. If you have KSEs working for libthr, then I assume there is very little extra kernel code needed. You do need to have get_mcontext() and set_mcontext() implemented in machdep.c, though. It looks like you do (although nothing is done with clear_ret in get_mcontext()). David, Julian, care to comment? > shot. If we have libkse on ia64, we can more easily work on the > issues related to TLS... -- Dan Eischen