From owner-cvs-all@FreeBSD.ORG Sat Jul 19 18:46:43 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 166DE37B401; Sat, 19 Jul 2003 18:46:43 -0700 (PDT) Received: from pool-151-200-10-97.res.east.verizon.net (pool-141-156-222-108.res.east.verizon.net [141.156.222.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6C5343FA3; Sat, 19 Jul 2003 18:46:41 -0700 (PDT) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net (z4fdebubwjgs8b7h@localhost [127.0.0.1]) id h6K1kf49045509; Sat, 19 Jul 2003 21:46:41 -0400 (EDT) (envelope-from mtm@identd.net) Received: (from mtm@localhost) by kokeb.ambesa.net (8.12.9/8.12.9/Submit) id h6K1kesg045508; Sat, 19 Jul 2003 21:46:40 -0400 (EDT) (envelope-from mtm@identd.net) X-Authentication-Warning: kokeb.ambesa.net: mtm set sender to mtm@identd.net using -f Date: Sat, 19 Jul 2003 21:46:40 -0400 From: Mike Makonnen To: src-committers@FreeBSD.org Message-ID: <20030720014640.GA45467@kokeb.ambesa.net> References: <200307200134.h6K1Yeaf073616@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307200134.h6K1Yeaf073616@repoman.freebsd.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.1-CURRENT (i386) cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2003 01:46:43 -0000 On Sat, Jul 19, 2003 at 06:34:40PM -0700, Mike Makonnen wrote: > mtm 2003/07/19 18:34:40 PDT > > FreeBSD src repository > > Modified files: > lib Makefile > Log: > Now that we have the stubs for alpha and we can build it > on that platform, invert the test for the platforms on > which libthr is built. Amd64 and powerpc are the only > platforms excluded. Even though libthr is now built by default on Alpha (I committed the stubs this morning) the resulting DSO won't work. As scottl mentioned alpha is the only tier 1 platform libthr doesn't build on yet, and I'm hoping that can be corrected soon. I'm trying to make it as easy as possible for an interested person to pick it up. This is the email I sent to freebsd-alpha: ----- Forwarded message from Mike Makonnen ----- Date: Sat, 19 Jul 2003 18:52:27 -0400 To: freebsd-alpha@freebsd.org From: Mike Makonnen Subject: libthr needs your help User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD/5.1-CURRENT (i386) Hello folks, I need a brave volunteer :-) to implement the remaining 2 (maybe 3) functions necessary to make libthr work on alpha. If it's anything like sparc64 or ia64, then it will only be 5/6 lines worth of code. I just committed the stubs this morning and they compile fine. They can be found at: src/lib/libthr/arch/alpaha/alpha/_curthread.c The first function is _get_curthread(). The only thing it has to do is return a pointer to the struct pthread of the current thread. The _set_curthread() function takes three arguements: a pointer to a ucontext_t, a pointer to a pthread, and a pointer to an integer (in which to return an error). If alpha is anything like ia64 or sparc64 then all this function needs to do is set the appropriate register to the pthread pointer. The _retire_thread() function is only necessary if you need to do any special cleaning up when a thread is destroyed. As far as I can tell this is the only remaining obstacle to getting libthr functional on alpha. All the other kernel and libc MD bits are already there. -------- End --------------- Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon!