Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2000 13:00:42 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        "Ralf S. Engelschall" <rse@engelschall.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: makecontext & friends ?
Message-ID:  <Pine.SUN.3.91.1000908125247.14774A-100000@pcnet1.pcnet.com>
In-Reply-To: <20000908161542.A87619@engelschall.com>

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

-- 
Dan Eischen



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?Pine.SUN.3.91.1000908125247.14774A-100000>