From owner-freebsd-arch Thu Jan 24 19:58:50 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 8DE2337B400; Thu, 24 Jan 2002 19:58:47 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020125035847.JRLY26243.rwcrmhc51.attbi.com@peter3.wemm.org>; Fri, 25 Jan 2002 03:58:47 +0000 Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id g0P3wls25057; Thu, 24 Jan 2002 19:58:47 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id D37AB3A9A; Thu, 24 Jan 2002 19:58:46 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Julian Elischer Cc: Daniel Eischen , deischen@FreeBSD.ORG, arch@FreeBSD.ORG Subject: Re: KSE question In-Reply-To: <3C50A3AC.8E9650F8@vicor-nb.com> Date: Thu, 24 Jan 2002 19:58:46 -0800 From: Peter Wemm Message-Id: <20020125035846.D37AB3A9A@overcee.wemm.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer wrote: > Daniel Eischen wrote: > > > > On Thu, 24 Jan 2002, Julian Elischer wrote: > > > Do you have in the normal uthreads package an assembler routine to load > > > and save the registers? Or do you use longjmp? > > > > In libc_r, we just use _setjmp and _longjmp. For KSE pthreads > > I wanted to use getcontext and setcontext, and was the reason > > I added them to -current. I have to turn them into system > > calls to satisfy Peter Wemm, but I plan on moving the assembler > > files in libc to libpthread. > > > > Why don't you try using these with your KSE test program? It'll > > save you from having to munge trapframes into jmp_bufs, since > > getcontext/setcontext operate on trapframes. > > > > -- > > Dan Eischen > > > ah great.. > I just wrote loadthread and savethread that load and save a trapframe. > but I'll look for get/setcontext. (now I know what they are called) Dont worry too much about this yet.. whatever is required to get a minimal proof-of-concept up is what we need. When we worked on the whiteboard we discovered that FP handling was going to be rather complex to say the least. That is far beyond the scope of a proof-of-concept test :-). > I hope to try out the first KSE-style threads tonight.. > :-) Whee.. :-) Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message