On Fri, 8 Sep 2000, Ralf S. Engelschall wrote:
> 
> In article <[EMAIL PROTECTED]> you wrote:
> 
> > are there any plans to implement makecontext() & friends
> > functions in FreeBSD? 
> 
> I don't know of any plans myself, but I would appreciate that we support this
> standardized ucontext(3) API in FreeBSD. The API is actually not the problem,
> the question is on what should this API internally be based? On an own
> mechanism or on an existing mechanism (jmp_buf, etc)?

My implementation of it was based on a trapframe, so it would be
easy to pass a ucontext_t to the kernel and have it switch to
the context at appropriate times (scheduler activations).  A
trapframe is the same as a sigcontext_t (ucontext_t) for i386
but not for the alpha.  I think I got around this by adding a
type field to the ucontext (or mcontext) to indicate which
format it was for alpha.

-- 
Dan Eischen



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to