From owner-freebsd-hackers Fri Sep 8 15:14:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from slarti.muc.de (slarti.muc.de [193.149.48.10]) by hub.freebsd.org (Postfix) with SMTP id 1335B37B443 for ; Fri, 8 Sep 2000 15:14:11 -0700 (PDT) Received: (qmail 7374 invoked by uid 66); 8 Sep 2000 22:23:07 -0000 Received: from en by slarti with UUCP; Fri Sep 8 22:23:07 2000 -0000 Received: by en1.engelschall.com (Sendmail 8.11.0+) for freebsd-hackers@freebsd.org id e88MDoc05007; Sat, 9 Sep 2000 00:13:50 +0200 (CEST) Date: Sat, 9 Sep 2000 00:13:49 +0200 From: "Ralf S. Engelschall" To: freebsd-hackers@freebsd.org Subject: Re: makecontext & friends ? Message-ID: <20000909001349.A4997@engelschall.com> Reply-To: rse@engelschall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Engelschall, Germany. X-Web-Homepage: http://www.engelschall.com/ X-PGP-Public-Key: https://www.engelschall.com/ho/rse/pgprse.asc X-PGP-Fingerprint: 00 C9 21 8E D1 AB 70 37 DD 67 A2 3A 0A 6F 8D A5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article 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