Subject: Re: swapcontext(3) does not work?
To: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
From: Hubert Feyrer <hubert@feyrer.de>
List: port-amd64
Date: 11/30/2004 13:27:13
On Tue, 30 Nov 2004, Kouichirou Hiratsuka wrote:
>    getcontext(&ctx[1]);
>    ctx[1].uc_stack.ss_sp = st1;
>    ctx[1].uc_stack.ss_size = sizeof st1;
>    ctx[1].uc_link = &ctx[0];
>    makecontext(&ctx[1], f1, 0);
...
>    swapcontext(&ctx[0], &ctx[2]);

Maybe it's because you use ctx[0] before initializing it?
Very rough guess, I've never heared about these functions before,
bringing this up on tech-kern@ may be useful.


  - Hubert

-- 
NetBSD - Free AND Open!      (And of course secure, portable, yadda yadda)