The change should be sufficient only in syncop_switchto(). Change in syncop_yeild() should not be necessary. I still don&#39;t understand how/why this change will help NetBSD, but it shouldn&#39;t break anything on Linux (calling makecontext() within or outside syncop_switchto() should not matter).<div>
<br></div><div>Avati<br><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 9:36 AM, Emmanuel Dreyfus <span dir="ltr">&lt;<a href="mailto:manu@netbsd.org" target="_blank">manu@netbsd.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Aug 08, 2012 at 12:49:11PM +0000, Emmanuel Dreyfus wrote:<br>
&gt; The problem is caused by a non portable behavior of swapcontext(): on<br>
&gt; Linux it remains in the same thread, on NetBSD it switches to the<br>
&gt; thread where getcontext()/makecontext() was run.<br>
<br>
</div>Is the attached patch resonable enough to be posted in gerrit?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Emmanuel Dreyfus<br>
<a href="mailto:manu@netbsd.org">manu@netbsd.org</a><br>
</font></span></blockquote></div><br></div>