Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2000 00:13:49 +0200
From:      "Ralf S. Engelschall" <rse@engelschall.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: makecontext & friends ?
Message-ID:  <20000909001349.A4997@engelschall.com>

next in thread | raw e-mail | index | archive | help

In article <Pine.SUN.3.91.1000908125247.14774A-100000@pcnet1.pcnet.com> you wrote:
> On Fri, 8 Sep 2000, Ralf S. Engelschall wrote:
>> 
>> In article <20000908151942.A15852@lamu.hermes.si> 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.

Sounds good -- where can I find a copy of your implementation?
I would like to look at it in more detail.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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