Date: Thu, 24 Jan 2002 16:15:40 -0800 From: Julian Elischer <julian@vicor-nb.com> To: Daniel Eischen <eischen@pcnet1.pcnet.com> Cc: deischen@freebsd.org, arch@freebsd.org Subject: Re: KSE question Message-ID: <3C50A3AC.8E9650F8@vicor-nb.com> References: <Pine.SUN.3.91.1020124162634.22249A-100000@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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) I hope to try out the first KSE-style threads tonight.. :-) 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?3C50A3AC.8E9650F8>