Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 19:58:46 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Julian Elischer <julian@vicor-nb.com>
Cc:        Daniel Eischen <eischen@pcnet1.pcnet.com>, deischen@FreeBSD.ORG, arch@FreeBSD.ORG
Subject:   Re: KSE question 
Message-ID:  <20020125035846.D37AB3A9A@overcee.wemm.org>
In-Reply-To: <3C50A3AC.8E9650F8@vicor-nb.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020125035846.D37AB3A9A>